Skip to main content

LaunchedEffectAsync

Function LaunchedEffectAsync 

Source
pub fn LaunchedEffectAsync<K, F>(keys: K, mk_future: F)
where K: PartialEq + 'static, F: FnOnce(LaunchedEffectScope) -> Pin<Box<dyn Future<Output = ()>>> + 'static,
Expand description

Like LaunchedEffect, but mk_future builds the future to drive rather than receiving a scope to call back into synchronously.