Function uniffi::ffi::rust_future_new

source ·
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

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.