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

Improve documentation for using `ExecutorFuture` and `TaskExecutor`

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Story Points:
      2

      Description

      We should improve the documentation on how to properly manage the lifetime of a TaskExecutor when used with instances of ExecutorFuture.

      In particular, we have instances of TaskExecutor that create a Client for each executor thread, requiring the executor to properly shutdown and join before the ServiceContext is destroyed. The documentation should highlight that the executor (and its threads) will stay alive so long as executor futures (and asynchronous loops) are not destroyed.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-servicearch Backlog - Service Architecture
            Reporter:
            amirsaman.memaripour Amirsaman Memaripour
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: