mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
doc: mention diverging tasks in book
This commit is contained in:
parent
160b7c00a6
commit
f6eacdc8d1
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# 'static super-powers
|
||||
|
||||
In `#[init]` and `#[idle]` `local` resources have `'static` lifetime.
|
||||
In `#[init]`, `#[idle]` and divergent software tasks `local` resources have `'static` lifetime.
|
||||
|
||||
Useful when pre-allocating and/or splitting resources between tasks, drivers or some other object. This comes in handy when drivers, such as USB drivers, need to allocate memory and when using splittable data structures such as [`heapless::spsc::Queue`].
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue