Commit 618a6ec3 authored by Hans Fugal's avatar Hans Fugal Committed by Dave Watson

(wangle) ManualExecutor::waitFor(F&&)

Summary:
@override-unit-failures

Test Plan: Using it in D1322350

Reviewed By: hannesr@fb.com

FB internal diff: D1322475
parent 74ff76d8
......@@ -42,6 +42,11 @@ namespace folly { namespace wangle {
run();
}
template <class F> void waitFor(F const& f) {
while (!f.isReady())
makeProgress();
}
private:
std::mutex lock_;
std::queue<std::function<void()>> runnables_;
......
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