Skip to content

Commit

Permalink
Update //docs/callback.md for OnceCallback support of PostTask impls
Browse files Browse the repository at this point in the history
This removes a mention to OnceCallback support of PostTask, since
PostTask does support OnceCallback now.

BUG=554299

Review-Url: https://codereview.chromium.org/2830223002
Cr-Commit-Position: refs/heads/master@{#466591}
  • Loading branch information
tzik authored and Commit bot committed Apr 24, 2017
1 parent 64c866e commit 298f67a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/callback.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ void Baz(OnceCallback<void(int)> cb) {

// |Qux| takes the ownership of |cb| and transfers ownership to PostTask(),
// which also takes the ownership of |cb|.
// NOTE: TaskRunner is not actually migrated to OnceClosure yet. Once TaskRunner
// supports OnceClosure, a OnceCallback can be posted as follows:
void Qux(OnceCallback<void(int)> cb) {
PostTask(FROM_HERE,
base::BindOnce(std::move(cb), 42)); // not yet implemented!
base::BindOnce(std::move(cb), 42));
}
```
Expand Down

0 comments on commit 298f67a

Please sign in to comment.