diff options
| author | Dániel Buga <[email protected]> | 2023-08-21 13:55:30 +0200 |
|---|---|---|
| committer | Dániel Buga <[email protected]> | 2023-08-21 18:12:41 +0200 |
| commit | 0a73c84df0936facecb3e1a97cf6f4795d321b87 (patch) | |
| tree | 950ab1cbbb07997203fe7e36f3b2ece5e3e8097c /embassy-executor/src/spawner.rs | |
| parent | 96e0ace89e48cffd073749cc3b08835a0a7d6cc9 (diff) | |
Make AvailableTask public, deduplicate
Diffstat (limited to 'embassy-executor/src/spawner.rs')
| -rw-r--r-- | embassy-executor/src/spawner.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-executor/src/spawner.rs b/embassy-executor/src/spawner.rs index 2b6224045..5a3a0dee1 100644 --- a/embassy-executor/src/spawner.rs +++ b/embassy-executor/src/spawner.rs | |||
| @@ -33,7 +33,8 @@ impl<S> SpawnToken<S> { | |||
| 33 | } | 33 | } |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | pub(crate) fn new_failed() -> Self { | 36 | /// Return a SpawnToken that represents a failed spawn. |
| 37 | pub fn new_failed() -> Self { | ||
| 37 | Self { | 38 | Self { |
| 38 | raw_task: None, | 39 | raw_task: None, |
| 39 | phantom: PhantomData, | 40 | phantom: PhantomData, |
