Seconds to wait for recovery before reloading.
Reload the page. Injected so a test never actually navigates.
OptionalsetDefaults to setTimeout.
OptionalclearDefaults to clearTimeout.
OptionalonCalled instead of reloading when the context comes back in time.
OptionalonSubscribe to a WebGPU device loss; returns the unsubscribe. Absent = only the WebGL canvas events are watched.
OptionalonSubscribe to a WebGPU device RECOVERY (cancels the pending reload); returns the unsubscribe.
The canvas whose context is being watched.