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

Add ExecutorFuture<T>::getAsyncMaybeInline

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • None
    • Service Arch
    • 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

            backlog-server-servicearch Backlog - Service Architecture
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: