Function uniffi::rust_future_new

pub fn rust_future_new<F, T, UT>(future: F, tag: UT) -> Handle
where F: Future<Output = T> + Send + 'static, T: LowerReturn<UT> + Send + 'static, UT: Send + 'static, dyn RustFutureFfi<<T as LowerReturn<UT>>::ReturnType>: HandleAlloc<UT>,
Expand description

Reexport items from other uniffi creates Create a new Handle for a Rust future

For each exported async function, UniFFI will create a scaffolding function that uses this to create the Handle to pass to the foreign code.