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 message sent to the TaskManager, registering an ManagedTask of a given kind.

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

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.

Type Definitions

A generic function to run when a task completes