Skip to main content

__launched_effect_async_impl

Function __launched_effect_async_impl 

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

site is where the effect was written. It travels onto the task the effect spawns, so a task the runtime is still holding says which effect started it.