Structs§
Statics§
Functions§
- accept_
error_ pause - Decide how long to wait, if at all, before retrying after an error from
accept(). - assign_
main_ runtime - available_
parallelism - dump_
all_ runtimes - get_
main_ runtime - get_
named_ runtime - rt_
spawn - Schedule func to run in the main runtime pool, which is named “localset” for legacy reasons.
- set_
localset_ threads - spawn
- Spawn a future as a task with a name. The task is spawned into the current tokio runtime.
- spawn_
blocking - Run a blocking function in the worker thread pool associated with the current tokio runtime.
- spawn_
blocking_ on - Run a blocking function in the worker thread pool associated with the provided tokio runtime.
- spawn_
on_ main - Spawn a named future onto the main runtime, or onto the current runtime when the main runtime is unassigned (eg: in unit tests).
- try_
get_ main_ runtime - Returns the main runtime’s handle, or
Nonebeforeassign_main_runtimehas run, which is the case in unit tests.