Function sync::create_promise_and_waitable

source ·
pub fn create_promise_and_waitable() -> (Promise, Waitable)
Expand description

Create a paired Promise and Waitable.

Signalling the Promise will signal the Waitable.