pub trait IntoDartFuture {
type Output;
// Required method
fn into_dart_future(self) -> DartFuture<Self::Output>;
}Expand description
Extension trait for a Future allowing to convert Rust Futures into
DartFutures.
Required Associated Types§
Sourcetype Output
type Output
Type of the value produced on the DartFuture’s completion.
Required Methods§
Sourcefn into_dart_future(self) -> DartFuture<Self::Output>
fn into_dart_future(self) -> DartFuture<Self::Output>
Converts this Future into a Dart Future.
Returns a Dart_Handle to the created Dart Future.
NOTE: The Dart Future execution begins immediately and cannot be
canceled.