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.
- CoreGuard ๐Used to ensure we always place the
Core
value back into its slot inCurrentThread
, even if the future panics. - CurrentThread ๐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.
- INITIAL_CAPACITY ๐Initial queue capacity.
Functionsยง
- shutdown2 ๐
Type Aliasesยง
- Notified ๐