aboutsummaryrefslogtreecommitdiff
path: root/examples/not-send.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/not-send.rs')
-rw-r--r--examples/not-send.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/not-send.rs b/examples/not-send.rs
index 45f7e4e7..18071fc5 100644
--- a/examples/not-send.rs
+++ b/examples/not-send.rs
@@ -26,9 +26,11 @@ mod 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])]