Expand description

We want to have control over certain long running tasks that we care about. If a task that is added to the task manager ends then a reaction can be set. An example would be a websocket closes with an error and you want to restart it.

Structs§

  • A collection of channels and handles used by the Conductor to talk to the TaskManager task

Enums§

  • An error that is thrown from within a managed task
  • Each task has a group, and here they are
  • The “kind” of a managed task determines how the Result from the task’s completion will be handled.
  • An error that is thrown from within the Task Manager itself. An unrecoverable ManagedTaskError can be bubbled up into a TaskManagerError.
  • The outcome of a task that has finished.

Functions§

  • Handle the result of shutting down the main thread.
  • Spawn a task which performs some action after each task has completed, as recieved by the outcome channel produced by the task manager.

Type Aliases§