Function uniffi::rust_future_poll
source · pub unsafe fn rust_future_poll<ReturnType>(
handle: RustFutureHandle,
callback: extern "C" fn(_: *const (), _: RustFuturePoll),
data: *const ()
)
Expand description
Reexport items from other uniffi creates 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