
This is useful in cases where a class needs to use a flag for controlling operations on a task queue but initialization needs to complete before tasks are allowed to run. Example CL that needs this (for MediaChannel): https://webrtc-review.googlesource.com/c/src/+/215405 Bug: webrtc:11993 Change-Id: Icd7dd16ee7447647266d6de000a4db3fd0447618 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/215583 Commit-Queue: Tommi <tommi@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33773}