Function on_unload

Source
pub fn on_unload(action: impl FnOnce() + Send + 'static)
Expand description

Adds a new action to be perform on unload.