diff options
Diffstat (limited to 'embassy-executor/src/raw/deadline.rs')
| -rw-r--r-- | embassy-executor/src/raw/deadline.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-executor/src/raw/deadline.rs b/embassy-executor/src/raw/deadline.rs index da07d1aac..ae6394822 100644 --- a/embassy-executor/src/raw/deadline.rs +++ b/embassy-executor/src/raw/deadline.rs | |||
| @@ -135,6 +135,7 @@ impl Deadline { | |||
| 135 | /// | 135 | /// |
| 136 | /// This sets the deadline to the default value of `u64::MAX`, meaning all | 136 | /// This sets the deadline to the default value of `u64::MAX`, meaning all |
| 137 | /// tasks with set deadlines will be scheduled BEFORE this task. | 137 | /// tasks with set deadlines will be scheduled BEFORE this task. |
| 138 | #[must_use = "Clearing deadline must be polled to be effective"] | ||
| 138 | pub fn clear_current_task_deadline() -> impl Future<Output = Self> { | 139 | pub fn clear_current_task_deadline() -> impl Future<Output = Self> { |
| 139 | poll_fn(move |cx| { | 140 | poll_fn(move |cx| { |
| 140 | let task = super::task_from_waker(cx.waker()); | 141 | let task = super::task_from_waker(cx.waker()); |
