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

Integrate CancelationTokens with ExecutorFutures

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • Service Arch 2021-02-22
    • 4

      The current thought is to add a parameter to the ExecutorFuture constructor and to .thenRunOn taking a CancelationToken, and refuse to schedule new continuations once the token is canceled, similar to executor shutdown. We could also consider making OutOfLineExecutor support cancelation so that we could cancel already scheduled tasks, but that isn't strictly necessary and would be more work.

            Assignee:
            george.wangensteen@mongodb.com George Wangensteen
            Reporter:
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: