Module tokio::runtime::scheduler::current_thread
source ยท Structsยง
- Context ๐Thread-local context.
- Core ๐Data required for executing the scheduler. The struct is passed around to a function that will perform the scheduling work and acts as a capability token.
- Core
Guard ๐Used to ensure we always place theCore
value back into its slot inCurrentThread
, even if the future panics. - Current
Thread ๐Executes tasks on the current thread - Handle ๐Handle to the current thread scheduler
- Shared ๐Scheduler state shared between threads.
Constantsยง
- Used if none is specified. This is a temporary constant and will be removed as we unify tuning logic between the multi-thread and current-thread schedulers.
- INITIA
L_ ๐CAPACITY Initial queue capacity.
Functionsยง
- shutdown2 ๐
Type Aliasesยง
- Notified ๐