pub const fn from_fn<F>(f: F) -> FromFn<F>where F: Fn(Event<'_, &dyn ErasedProps>),
Create an Emitter from a function.
Emitter
The input function is assumed not to perform any background work that needs flushing.