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

TaskExecutor should support creating CallbackHandles before scheduling work

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Internal Client
    • Labels:
      None

      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

              Assignee:
              backlog-server-servicearch Backlog - Service Architecture
              Reporter:
              redbeard0531 Mathias Stearn
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: