Function stakker_async_await::spawn_future_with_waker [−][src]
pub fn spawn_future_with_waker<T>(
_core: &mut Core,
_future: impl Future<Output = T> + 'static,
_ret: Ret<T>
)
Spawn a Future
and pass the final result to the given Ret
,
with Waker
support
NOT YET IMPLEMENTED!
This call supports the std::task::Waker
mechanism. This has an
additional cost because things have to be set up to receive those
inter-thread notifications. It also requires that a Stakker
inter-thread waker mechanism has been set up via
stakker::Stakker::set_poll_waker
by the event-polling
implementation. For example the stakker_mio
crate supports
this.