folly::fibers::async::baton_wait

Async tagged wrapper that blocks on a baton until it is posted.

Synopsis

Declared in <folly/fibers/async/Baton.h>

template<typename... Args>
Async<void>
baton_wait(
    Baton& baton,
    Args&&... args);

Return Value

An empty Async once the baton has been posted.

Parameters

NameDescription
batonThe baton to wait on.
argsArguments forwarded to Baton::wait.