pub unsafe fn rust_future_poll<ReturnType>(
handle: RustFutureHandle,
callback: extern "C" fn(_: *const (), _: RustFuturePoll),
data: *const (),
)
Expand description
Poll a Rust future
When the future is ready to progress the continuation will be called with the data
value and
a RustFuturePoll value. For each rust_future_poll call the continuation will be called
exactly once.
ยงSafety
The RustFutureHandle must not previously have been passed to rust_future_free