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

Integrate CancelationTokens with ExecutorFutures

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Internal Code
    • None
    • Fully Compatible
    • Service Arch 2021-02-22
    • 4

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: