From 298f67afd032e7251a2b950715c456769d4977f9 Mon Sep 17 00:00:00 2001 From: tzik Date: Sun, 23 Apr 2017 23:14:13 -0700 Subject: [PATCH] Update //docs/callback.md for OnceCallback support of PostTask impls 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} --- docs/callback.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/callback.md b/docs/callback.md index 4194d510799521..5f93ad6afa742f 100644 --- a/docs/callback.md +++ b/docs/callback.md @@ -67,11 +67,9 @@ void Baz(OnceCallback 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 cb) { PostTask(FROM_HERE, - base::BindOnce(std::move(cb), 42)); // not yet implemented! + base::BindOnce(std::move(cb), 42)); } ```