Re-exports§
pub use embassy_executor;
Modules§
- metrics
- Portable CPU activity metrics for tasks and executors (
metricsfeature). - test_
executor - Single-threaded std executor for tests (
test_harnessfeature).
Macros§
- instantiate_
test_ executor - A per-call-site static
Executor, as used by#[task::test].
Structs§
- Environment
Variable - Join
Handle - A result can cross threads only when it is Send.
- Manager
- A manager for tasks.
- Signal
Accumulator - Task
Authority - Authority bound to one task registration in one manager. Copies retain that registration; they never inherit the identity of a reused numeric task ID.
- Task
Identifier - Task
Slot - Backing storage for a task and its scheduler and timer queue links. A platform can place these slots in RAM that supports atomic operations.
Enums§
Functions§
- block_
on - deadline_
after_ nanoseconds - The Embassy instant at which a wait of
nanosecondshas fully elapsed. - get_
instance - initialize
- sleep
- Sleep the current thread for a given duration.
- suspend
- Suspend the current task until the provided function is called with a context. The function will be called with a mutable reference to the task’s context, allowing it to wake the
- test_
lock - yield_
now - Yield the current thread, allowing other tasks to run.
- yield_
throttled - Yield the current thread, but never resume faster than a polling loop should.