push_waker_and_get_token

Function push_waker_and_get_token 

Source
pub fn push_waker_and_get_token(pollable: Pollable, waker: Waker) -> CancelToken
Expand description

Register a Pollable and Waker to be polled as part of the run event loop and retrieve a CancelToken to cancel the registration later, if desired.