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

Scoped wrapper for out-of-line executors

    • Service Arch

      SERVER-40722 introduced a wrapper for task executors to ensure all outstanding callbacks are executed before the wrapper is destroyed (defined here). This wrapper simplifies draining all tasks scheduled by a subsystem (e.g., PrimaryOnlyService) before a particular execution point (e.g., the destructor of the subsystem).

      This ticket should provide a similar wrapper for instances of out-of-line executor (e.g., ThreadPool). We can also deprecate waitForIdle in favor of using scoped executors.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: