diff options
Diffstat (limited to 'examples/not-send.rs')
-rw-r--r-- | examples/not-send.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/not-send.rs b/examples/not-send.rs index 16a874dc..999abfaf 100644 --- a/examples/not-send.rs +++ b/examples/not-send.rs @@ -23,9 +23,11 @@ const APP: () = { } #[init(spawn = [baz, quux])] - fn init(c: init::Context) { + fn init(c: init::Context) -> init::LateResources { c.spawn.baz().unwrap(); c.spawn.quux().unwrap(); + + init::LateResources {} } #[task(spawn = [bar])] |