Skip to content

Commit fc7483d

Browse files
authored
Merge pull request rust-lang#137 from aidanhs/aphs-clarify-poll_future
Registering unpark is the responsibility of the callee
2 parents ee915e7 + 0783950 commit fc7483d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/task/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl<F: Future> Spawn<F> {
209209
/// `task::park()` will return a handle that contains the `unpark`
210210
/// specified.
211211
///
212-
/// If this function returns `NotReady`, then the `unpark` should be
212+
/// If this function returns `NotReady`, then the `unpark` should have been
213213
/// scheduled to receive a notification when poll can be called again.
214214
/// Otherwise if `Ready` or `Err` is returned, the `Spawn` task can be
215215
/// safely destroyed.

0 commit comments

Comments
 (0)