Crate spin_executor
Source - CancelOnDropToken
- Handle to a Pollable registered using
push_waker_and_get_token
which, when
dropped, will cancel and drop the Pollable. - CancelToken
- Handle to a Pollable registered using
push_waker_and_get_token
which may
be used to cancel and drop the Pollable.
- push_waker
- Register a
Pollable
and Waker
to be polled as part of the run
event
loop. - push_waker_and_get_token
- 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. - run
- Run the specified future to completion, blocking until it yields a result.