Module task

Module task 

Source
Expand description

Helpers for working with asynchronous tasks.

Structs§

InstrumentedTask
An instrumented task future.

Traits§

HandleExt
Helper trait for providing traced spawning when using Handle.
JoinSetExt
Helper trait for providing traced spawning when using JoinSet<T>.
TaskInstrument
Helper trait for instrumenting futures that are run as asynchronous tasks.

Functions§

get_caller_location_as_string
Gets the caller location as a string, in the form of file:line:column.
spawn_traced
Spawns a new asynchronous task, returning a JoinHandle for it.
spawn_traced_named
Spawns a new named asynchronous task, returning a JoinHandle for it.