diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-07-09 01:49:31 +0200 |
|---|---|---|
| committer | diondokter <[email protected]> | 2025-08-29 13:23:21 +0200 |
| commit | 8aec341f28a00012e1771d5c35d2647e11830755 (patch) | |
| tree | 28ec3bad05e5dcb6ec949493688111839bb6865b /docs/examples | |
| parent | 34ff67cdbf25e278ff99bd4a05b6b8c6a30fa5d1 (diff) | |
executor: return error when creating the spawntoken, not when spawning.
Diffstat (limited to 'docs/examples')
| -rw-r--r-- | docs/examples/basic/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/basic/src/main.rs b/docs/examples/basic/src/main.rs index 4412712c8..6e274bacb 100644 --- a/docs/examples/basic/src/main.rs +++ b/docs/examples/basic/src/main.rs | |||
| @@ -22,5 +22,5 @@ async fn main(spawner: Spawner) { | |||
| 22 | let p = embassy_nrf::init(Default::default()); | 22 | let p = embassy_nrf::init(Default::default()); |
| 23 | 23 | ||
| 24 | let led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard); | 24 | let led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard); |
| 25 | unwrap!(spawner.spawn(blinker(led, Duration::from_millis(300)))); | 25 | spawner.spawn(unwrap!(blinker(led, Duration::from_millis(300)))); |
| 26 | } | 26 | } |
