Module task

Source
Expand description

Basic task types

Structs§

ConsensusTaskRegistry
A collection of tasks which can handle shutdown
NetworkTaskRegistry
A collection of tasks which can handle shutdown
Task
A basic task which loops waiting for events to come from event_receiver and then handles them using its state It sends events to other Tasks through sender This should be used as the primary building block for long running or medium running tasks (i.e. anything that can’t be described as a dependency task)

Traits§

TaskEvent
Trait for events that long-running tasks handle
TaskState
Type for mutable task state that can be used as the state for a Task