Module task

Source
Expand description

Contains the TaskController API, providing a way to spawn tasks that can be can cancelled using the TaskController, with the option of falling back to a timeout cancel.

Structsยง

TaskController
Handles spawning tasks which can also be cancelled by calling cancel on the task controller. If a std::time::Duration is supplied using the with_timeout constructor, then any tasks spawned by the TaskController will automatically be cancelled after the supplied duration has elapsed.