Skip to main content

enter_event_handler_scope

Function enter_event_handler_scope 

Source
pub fn enter_event_handler_scope() -> EventHandlerScopeGuard
Expand description

Marks the thread as inside an event handler until the returned guard is dropped. In debug builds, a state write there that is not inside a snapshot logs a warning.