Async tagged wrapper that waits on a baton until a deadline.

Synopsis

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

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

Return Value

True if the baton was posted before the deadline, false otherwise.

Parameters

Name

Description

baton

The baton to wait on.

args

Arguments forwarded to Baton::try_wait_until (e.g. a deadline).

Created with MrDocs