Skip to main content

Crate task

Crate task 

Source

Re-exports§

pub use embassy_executor;

Modules§

metrics
Portable CPU activity metrics for tasks and executors (metrics feature).
test_executor
Single-threaded std executor for tests (test_harness feature).

Macros§

instantiate_test_executor
A per-call-site static Executor, as used by #[task::test].

Structs§

EnvironmentVariable
JoinHandle
A result can cross threads only when it is Send.
Manager
A manager for tasks.
SignalAccumulator
TaskAuthority
Authority bound to one task registration in one manager. Copies retain that registration; they never inherit the identity of a reused numeric task ID.
TaskIdentifier
TaskSlot
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§

Error
Signal
POSIX signals enumeration

Functions§

block_on
deadline_after_nanoseconds
The Embassy instant at which a wait of nanoseconds has 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.

Type Aliases§

Result
SpawnerIdentifier
TaskIdentifierInner

Attribute Macros§

run
A procedural macro to annotate functions that should run with a specific executor.
test
A procedural macro to annotate test functions.