aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/src
diff options
context:
space:
mode:
authorOlof <[email protected]>2024-12-27 00:35:49 +0100
committerGitHub <[email protected]>2024-12-27 00:35:49 +0100
commit0836392219f4c47c470267c7b51b51fa730784b8 (patch)
tree449214fa6f32e7f23a8f0fb0f446abd48ebc4e44 /embassy-executor/src
parent4f4740eeb25e0db607a7f700e29efd313dd1942d (diff)
parentb71696c8f54edba664e9bfe77a1d86d09d88f52c (diff)
Merge branch 'embassy-rs:main' into u5_adc
Diffstat (limited to 'embassy-executor/src')
-rw-r--r--embassy-executor/src/spawner.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/embassy-executor/src/spawner.rs b/embassy-executor/src/spawner.rs
index 16347ad71..41320d4c3 100644
--- a/embassy-executor/src/spawner.rs
+++ b/embassy-executor/src/spawner.rs
@@ -62,6 +62,16 @@ pub enum SpawnError {
62 Busy, 62 Busy,
63} 63}
64 64
65impl core::fmt::Display for SpawnError {
66 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
67 match self {
68 SpawnError::Busy => write!(f, "Busy"),
69 }
70 }
71}
72
73impl core::error::Error for SpawnError {}
74
65/// Handle to spawn tasks into an executor. 75/// Handle to spawn tasks into an executor.
66/// 76///
67/// This Spawner can spawn any task (Send and non-Send ones), but it can 77/// This Spawner can spawn any task (Send and non-Send ones), but it can