Async tagged wrapper that waits on a baton for a bounded duration.

Synopsis

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

template<typename... Args>
Async<bool>
baton_try_wait_for(
    Baton& baton,
    Args&&... args);

Return Value

True if the baton was posted within the timeout, false otherwise.

Parameters

Name

Description

baton

The baton to wait on.

args

Arguments forwarded to Baton::try_wait_for (e.g. a timeout).

Created with MrDocs