Crate kumo_server_runtime

Crate kumo_server_runtime 

Source

Structs§

Runtime

Statics§

MAIN_RUNTIME
RUNTIME

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 None before assign_main_runtime has run, which is the case in unit tests.