Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40794

TaskExecutor should support creating CallbackHandles before scheduling work

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Declined
    • None
    • None
    • Internal Client
    • None
    • Fully Compatible
    • Service Arch 2019-04-22

    Description

      Right now users of TaskExecutor that need to work with CallbackHandles have to work around an inherent race between dealing with the returned Handle and the callback which may be running. This race could be avoided if it was possible to create the CallbackHandle in advance then tell the TaskExecutor to use it.

      An additional goal to achieve in the process of this work is to, instead of taking a callback, return a future when a CallbackHandle is provided ahead of time.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-servicearch Backlog - Service Architecture
              mathias@mongodb.com Mathias Stearn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: