pub fn watch( runtime: Handle, cfg: Config, on_event: impl Fn(Event) + Send + 'static, )
Watch runtime with cfg, calling on_event from the watching thread.
runtime
cfg
on_event