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

Add ExecutorFuture<T>::getAsyncMaybeInline

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.1 Desired
    • Component/s: Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      Add support for a new method on executor future which terminates a chain and executes its callback regardless of failures to schedule. The intention is for this function to allow for cleanup that always needs to occur.

      An ideal signature would look like:

      void getAsyncMaybeInline(StatusOrStatusWith<T> t, bool executorShutdown)

      the extra parameter would allow the caller to identify when they might be running inline, and to possibly take extra precaution in that case

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: