Crate embassy_executor_macros
source ·Expand description
embassy-executor-macros
An Embassy project.
NOTE: Do not use this crate directly. The macros are re-exported by embassy-executor
.
License
This work is licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Attribute Macros
- Creates a new
executor
instance and declares an application entry point for Cortex-M spawning the corresponding function body as an async task. - Creates a new
executor
instance and declares an application entry point for RISC-V spawning the corresponding function body as an async task. - Creates a new
executor
instance and declares an application entry point for STD spawning the corresponding function body as an async task. - Creates a new
executor
instance and declares an application entry point for WASM spawning the corresponding function body as an async task. - Declares an async task that can be run by
embassy-executor
. The optionalpool_size
parameter can be used to specify how many concurrent tasks can be spawned (default is 1) for the function.