Skip to main content

effect_with

Function effect_with 

Source
pub fn effect_with(
    scheduler: impl EffectScheduler + 'static,
    f: impl Fn() + 'static,
) -> EffectHandle
Expand description

Creates an effect in the current thread’s default reactor that is scheduled by scheduler instead of the reactor’s microtask lane.

See Reactor::effect_with for the contract.