Module task

Module task 

Source
Available on crate feature rt only.
Expand description

Extra utilities for spawning tasks

This module is only available when the rt feature is enabled. Note that enabling the join-map feature will automatically also enable the rt feature.

Modules§

task_tracker
Types related to the TaskTracker collection.

Structs§

AbortOnDropHandle
A wrapper around a tokio::task::JoinHandle, which aborts the task when it is dropped.
JoinMapjoin-map
A collection of tasks spawned on a Tokio runtime, associated with hash map keys.
JoinMapKeysjoin-map
An iterator over the keys of a JoinMap.
JoinQueue
A FIFO queue for of tasks spawned on a Tokio runtime.
LocalPoolHandle
A cloneable handle to a local pool, used for spawning !Send tasks.
TaskTracker
A task tracker used for waiting until tasks exit.