pub struct AsyncCondition { /* private fields */ }Expand description
An asynchronous condition that can block multiple tasks until triggered.
Implementations§
Source§impl AsyncCondition
impl AsyncCondition
pub fn new() -> Self
Sourcepub fn wait(&self) -> AsyncConditionWait<'_> ⓘ
pub fn wait(&self) -> AsyncConditionWait<'_> ⓘ
Returns a future that will block until trigger() is next called.