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

TaskExecutor should support creating CallbackHandles before scheduling work

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Client
    • Server Programmability
    • Fully Compatible
    • Service Arch 2019-04-22

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: