embassy_executor - Rust (original) (raw)

Crate embassy_executor

Source

Expand description

§embassy-executor

An async/await executor designed for embedded usage.

§Feature flags

§Architecture

§Executor

§Timer Item Payload Size

Sets the size of the payload for timer items, allowing integrated timer implementors to store additional data in the timer item. The payload field will be aligned to this value as well. If these features are not defined, the timer item will contain no payload field.

raw

Raw executor.

Executor

Thread mode executor, using WFE/SEV.

InterruptExecutor

Interrupt mode executor.

SendSpawner

Handle to spawn tasks into an executor from any thread.

SpawnToken

Token to spawn a newly-created task in an executor.

Spawner

Handle to spawn tasks into an executor.

SpawnError

Error returned when spawning a task.

main

Creates a new executor instance and declares an application entry point for Cortex-M spawning the corresponding function body as an async task.

task

Declares an async task that can be run by embassy-executor. The optional pool_size parameter can be used to specify how many concurrent tasks can be spawned (default is 1) for the function.