Skip to content

Commit

Permalink
Merge pull request rust-lang#137 from aidanhs/aphs-clarify-poll_future
Browse files Browse the repository at this point in the history
Registering unpark is the responsibility of the callee
  • Loading branch information
alexcrichton committed Sep 9, 2016
2 parents ee915e7 + 0783950 commit fc7483d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/task/mod.rs
Expand Up @@ -209,7 +209,7 @@ impl<F: Future> Spawn<F> {
/// `task::park()` will return a handle that contains the `unpark`
/// specified.
///
/// If this function returns `NotReady`, then the `unpark` should be
/// If this function returns `NotReady`, then the `unpark` should have been
/// scheduled to receive a notification when poll can be called again.
/// Otherwise if `Ready` or `Err` is returned, the `Spawn` task can be
/// safely destroyed.
Expand Down

0 comments on commit fc7483d

Please sign in to comment.