File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -276,9 +276,10 @@ impl Runnable {
276
276
/// Runs the task by polling its future.
277
277
///
278
278
/// Returns `true` if the task was woken while running, in which case the [`Runnable`] gets
279
- /// rescheduled at the end of this method invocation.
280
- ///
281
- /// Otherwise, returns `true` and the [`Runnable`] vanishes until the task is woken.
279
+ /// rescheduled at the end of this method invocation. Otherwise, returns `false` and the
280
+ /// [`Runnable`] vanishes until the task is woken.
281
+ /// The return value is just a hint: `true` usually indicates that the task has yielded, i.e.
282
+ /// it woke itself and then gave the control back to the executor.
282
283
///
283
284
/// If the [`Task`] handle was dropped or if [`cancel()`][`Task::cancel()`] was called, then
284
285
/// this method simply destroys the task.
You can’t perform that action at this time.
0 commit comments