Commit dbe9769b authored by Dominic Farolino's avatar Dominic Farolino Committed by Commit Bot

[docs]: Make SingleThreadTaskRunner example more explicit

This CL makes a SingleThreadTaskRunner example more explicit by using
the SingleThreadTaskRunner type instead of using the
SequencedTaskRunner base class.

Bug: N/A
Change-Id: I77fa2affacbda0f4847e4b808eab267f0977fb49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636668Reviewed-by: default avatarMarijn Kruisselbrink <mek@chromium.org>
Commit-Queue: Dominic Farolino <domfarolino@gmail.com>
Cr-Commit-Position: refs/heads/master@{#665049}
parent 8e522297
......@@ -369,7 +369,7 @@ be the main thread or the IO thread, post them to a `base::SingleThreadTaskRunne
created by `base::CreateSingleThreadTaskRunnerWithTraits`.
```cpp
scoped_refptr<SequencedTaskRunner> single_thread_task_runner =
scoped_refptr<SingleThreadTaskRunner> single_thread_task_runner =
base::CreateSingleThreadTaskRunnerWithTraits(...);
// TaskB runs after TaskA completes. Both tasks run on the same thread.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment