diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-10-15 00:34:59 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-15 00:34:59 +0000 |
| commit | 7045c5317091c8e81b0dbe64c9788bb2667472b1 (patch) | |
| tree | 7d2e7610753a24c71036cade2c3f5215c542afca /docs | |
| parent | a818f336582fcaef3795cb99a7e38d3c4b9c1237 (diff) | |
| parent | 0621e957a0ddc7010d46b3ea3ddc8b9852bc8333 (diff) | |
Merge pull request #2061 from adamgreig/timer-helpers
Add convenience methods for Timer::after_secs/millis/micros/ticks
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/modules/ROOT/pages/runtime.adoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/modules/ROOT/pages/runtime.adoc b/docs/modules/ROOT/pages/runtime.adoc index cb8afef29..8f4921f67 100644 --- a/docs/modules/ROOT/pages/runtime.adoc +++ b/docs/modules/ROOT/pages/runtime.adoc | |||
| @@ -6,7 +6,7 @@ The Embassy executor is an async/await executor designed for embedded usage alon | |||
| 6 | 6 | ||
| 7 | * No `alloc`, no heap needed. Task are statically allocated. | 7 | * No `alloc`, no heap needed. Task are statically allocated. |
| 8 | * No "fixed capacity" data structures, executor works with 1 or 1000 tasks without needing config/tuning. | 8 | * No "fixed capacity" data structures, executor works with 1 or 1000 tasks without needing config/tuning. |
| 9 | * Integrated timer queue: sleeping is easy, just do `Timer::after(Duration::from_secs(1)).await;`. | 9 | * Integrated timer queue: sleeping is easy, just do `Timer::after_secs(1).await;`. |
| 10 | * No busy-loop polling: CPU sleeps when there's no work to do, using interrupts or `WFE/SEV`. | 10 | * No busy-loop polling: CPU sleeps when there's no work to do, using interrupts or `WFE/SEV`. |
| 11 | * Efficient polling: a wake will only poll the woken task, not all of them. | 11 | * Efficient polling: a wake will only poll the woken task, not all of them. |
| 12 | * Fair: a task can't monopolize CPU time even if it's constantly being woken. All other tasks get a chance to run before a given task gets polled for the second time. | 12 | * Fair: a task can't monopolize CPU time even if it's constantly being woken. All other tasks get a chance to run before a given task gets polled for the second time. |
