diff options
| author | Nils Fitinghoff <nils.fitinghoff@mobilaris.se> | 2023-08-29 09:28:43 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2023-08-29 11:31:11 +0000 |
| commit | cc1e7154fce6780b8db7fe3457405b8e02563f7d (patch) | |
| tree | 7b58e18fdd4db60422d1c7c6740ae13fce073d8f /book/en/src/by-example/software_tasks.md | |
| parent | 57be9b0dc9c1c53bb55d0efcaaa0b2c2cea0c7a2 (diff) | |
book: Update default priority to 0
Diffstat (limited to 'book/en/src/by-example/software_tasks.md')
| -rw-r--r-- | book/en/src/by-example/software_tasks.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/book/en/src/by-example/software_tasks.md b/book/en/src/by-example/software_tasks.md index 444f4a6..756150d 100644 --- a/book/en/src/by-example/software_tasks.md +++ b/book/en/src/by-example/software_tasks.md @@ -35,7 +35,7 @@ $ cargo run --target thumbv7m-none-eabi --example spawn ``` You may `spawn` a *software* task again, given that it has run-to-completion (returned). -In the below example, we `spawn` the *software* task `foo` from the `idle` task. Since the default priority of the *software* task is 1 (higher than `idle`), the dispatcher will execute `foo` (preempting `idle`). Since `foo` runs-to-completion. It is ok to `spawn` the `foo` task again. +In the below example, we `spawn` the *software* task `foo` from the `idle` task. Since the priority of the *software* task is 1 (higher than `idle`), the dispatcher will execute `foo` (preempting `idle`). Since `foo` runs-to-completion. It is ok to `spawn` the `foo` task again. Technically the async executor will `poll` the `foo` *future* which in this case leaves the *future* in a *completed* state. |
