Function silkenweb::window::on_unhandledrejection
source · pub fn on_unhandledrejection(
f: impl FnMut(PromiseRejectionEvent) + 'static
) -> EventCallback
Expand description
Add a unhandledrejection
event handler at the window level.
This only has an effect on WASM targets.