pub trait DeferWithRedrawAsync<T: 'static> {
// Required method
fn defer_with_redraw_async<R>(
self,
f: impl AsyncDeferCallback<T, R>,
) -> impl Future<Output = Option<R>> + Send
where R: Send + 'static,
Self: Sized;
}Expand description
Async extension to [UiRunner], allowing to await until deferred closures with redraw are executed
Required Methods§
Sourcefn defer_with_redraw_async<R>(
self,
f: impl AsyncDeferCallback<T, R>,
) -> impl Future<Output = Option<R>> + Send
fn defer_with_redraw_async<R>( self, f: impl AsyncDeferCallback<T, R>, ) -> impl Future<Output = Option<R>> + Send
Awaitable variant of [DeferWithRedraw::defer_with_redraw] based on DeferAsync::defer_async.
Return value behaves the same as DeferAsync::defer_async.