Function swctx::mkpair

source ยท
pub fn mkpair<T, S, E>() -> (SetCtx<T, S, E>, WaitCtx<T, S, E>)
where S: Clone + Default,
Expand description

Create a linked SetCtx and WaitCtx pair.

The WaitCtx is used to wait for a value to arrive from the SetCtx.