Skip to main content

send

Function send 

Source
fn send<L: Logic, B: Backend>(
    engine: &Weak<Engine<L, B>>,
    event: impl FnOnce(&L) -> Result<(), L::Error>,
)
Expand description

Runs event as one event of engine, if the app is still running. Handlers hold their engine weakly, since the engine owns the widgets that own them.