Skip to main content

Module task

Module task 

Source
Expand description

Possible tokio::task additions.

Structsยง

Payload ๐Ÿ”’
ScopedJoinHandle
Handle to a task, which cancels on drop.

Functionsยง

erased_future ๐Ÿ”’ โš 
erased_send_fn_once ๐Ÿ”’ โš 
erased_send_future ๐Ÿ”’ โš 
spawn_blocking_scoped
Runs the provided non-static closure on a thread where blocking is acceptable.
spawn_local_scoped
Spawns a non-static !Send future.
spawn_scoped
Spawns a non-static Send future, returning for non-static cases a !Send task handle.