unregister components while exiting

This commit is contained in:
csmoe 2018-12-15 21:55:58 +08:00
parent c9229f3f99
commit 5600a1dca1
5 changed files with 44 additions and 0 deletions

View file

@ -469,4 +469,6 @@ pub trait BackgroundHangMonitor {
fn notify_activity(&self, annotation: HangAnnotation);
/// Notify the start of waiting for a new event to come in.
fn notify_wait(&self);
/// Unregister the component from monitor.
fn unregister(&self);
}