Crate task_control

Source
Expand description

A simple asynchronous task model for execution that needs to be started, stopped, mutated, and inspected.

Structs§

Cancelled
The return error from AsyncRun::run indicating the task has not yet finished executing.
StopTask
A future indicating that the task should return for event processing or because the task was stopped.
TaskControl
A task wrapper that runs the task asynchronously and provides access to its state.

Traits§

AsyncRun
A method implemented by a task that can be run and stopped, storing transient state in S.
InspectTask
A trait for inspecting a task and its associated state.
InspectTaskMut
A trait for mutably inspecting a task and its associated state.