Module local

Source
Expand description

Runs !Send futures on the current thread.

Structsยง

Context ๐Ÿ”’
State available from the thread-local.
LocalData ๐Ÿ”’
LocalDataEnterGuard ๐Ÿ”’
A guard for LocalData::enter()
LocalEnterGuard
Context guard for LocalSet
LocalSet
A set of tasks which are executed on the same thread.
LocalState ๐Ÿ”’
Tracks the LocalSet state that must only be accessed from the thread that created the LocalSet.
RunUntil ๐Ÿ”’
Shared ๐Ÿ”’
LocalSet state shared between threads.

Constantsยง

CURRENT ๐Ÿ”’
INITIAL_CAPACITY ๐Ÿ”’
Initial queue capacity.
MAX_TASKS_PER_TICK ๐Ÿ”’
Max number of tasks to poll per tick.
REMOTE_FIRST_INTERVAL ๐Ÿ”’
How often it check the remote queue first.

Functionsยง

spawn_local
Spawns a !Send future on the current LocalSet or LocalRuntime.
spawn_local_inner ๐Ÿ”’