hyper_context_waker

Function hyper_context_waker 

Source
#[unsafe(no_mangle)]
pub extern "C" fn hyper_context_waker( cx: *mut hyper_context<'_>, ) -> *mut hyper_waker
Available on crate feature ffi and hyper_unstable_ffi only.
Expand description

Creates a waker associated with the task context.

The waker can be used to inform the task’s executor that the task is ready to make progress (using hyper_waker_wake).

Typically this only needs to be called once, but it can be called multiple times, returning a new waker each time.

To avoid a memory leak, the waker must eventually be consumed by hyper_waker_free or hyper_waker_wake.