diff options
| author | Oleksandr Babak <alexanderbabak@proton.me> | 2025-03-23 11:24:45 +0100 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2025-03-27 14:47:11 +0000 |
| commit | f6eacdc8d16fd0b47d28fa6a84e6099c9c09eca9 (patch) | |
| tree | a24efa180adc323b34fba4fb3ab167879bfd0547 /book/en/src | |
| parent | 160b7c00a6f3dd8b5655d44993525dfacfb7a052 (diff) | |
doc: mention diverging tasks in book
Diffstat (limited to 'book/en/src')
| -rw-r--r-- | book/en/src/by-example/tips/static_lifetimes.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/book/en/src/by-example/tips/static_lifetimes.md b/book/en/src/by-example/tips/static_lifetimes.md index 7f4e38f..6f88bf0 100644 --- a/book/en/src/by-example/tips/static_lifetimes.md +++ b/book/en/src/by-example/tips/static_lifetimes.md @@ -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`]. |
