diff options
Diffstat (limited to '')
| -rw-r--r-- | runtime/src/task.rs | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/runtime/src/task.rs b/runtime/src/task.rs index ec8d7cc7..3f97d134 100644 --- a/runtime/src/task.rs +++ b/runtime/src/task.rs @@ -14,6 +14,7 @@ use std::future::Future;  ///  /// A [`Task`] _may_ produce a bunch of values of type `T`.  #[allow(missing_debug_implementations)] +#[must_use = "`Task` must be returned to the runtime to take effect; normally in your `update` or `new` functions."]  pub struct Task<T>(Option<BoxStream<Action<T>>>);  impl<T> Task<T> { | 
