Module global

Source
Expand description

Global runtimes

Macrosยง

define_global_runtime_spawn ๐Ÿ”’
define_spawn ๐Ÿ”’

Structsยง

ConfigRuntimes ๐Ÿ”’
GlobalRuntimes ๐Ÿ”’
RuntimeOptions
The options for the global runtimes.

Constantsยง

COMPACT_WORKERS ๐Ÿ”’
GLOBAL_WORKERS ๐Ÿ”’
HB_WORKERS ๐Ÿ”’

Staticsยง

CONFIG_RUNTIMES ๐Ÿ”’
GLOBAL_RUNTIMES ๐Ÿ”’

Functionsยง

block_on_compact
Run a future to complete in compact thread pool.
block_on_global
Run a future to complete in global thread pool.
block_on_hb
Run a future to complete in hb thread pool.
compact_runtime
Returns the global compact thread pool.
create_runtime
global_runtime
Returns the global global thread pool.
hb_runtime
Returns the global hb thread pool.
init_global_runtimes
Initialize the global runtimes
spawn_blocking_compact
Run the blocking operation in compact thread pool.
spawn_blocking_global
Run the blocking operation in global thread pool.
spawn_blocking_hb
Run the blocking operation in hb thread pool.
spawn_compact
Spawn a future and execute it in compact thread pool.
spawn_global
Spawn a future and execute it in global thread pool.
spawn_hb
Spawn a future and execute it in hb thread pool.