| Index: docs/callback.md
|
| diff --git a/docs/callback.md b/docs/callback.md
|
| index b891a0f05fdf21178a4e4c8ff918fecc1c8995f9..6b7dd6931f5009a402696c7753c619a48ff98b62 100644
|
| --- a/docs/callback.md
|
| +++ b/docs/callback.md
|
| @@ -67,8 +67,11 @@ 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, std::move(cb));
|
| + PostTask(FROM_HERE,
|
| + base::BindOnce(std::move(cb), 42)); // not yet implemented!
|
| }
|
| ```
|
|
|
|
|