aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/src/spawner.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-executor/src/spawner.rs')
-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