File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,12 @@ pub trait MessageSendEventsProvider {
381
381
fn get_and_clear_pending_msg_events ( & self ) -> Vec < MessageSendEvent > ;
382
382
}
383
383
384
- /// A trait indicating an object may generate events
384
+ /// A trait indicating an object may generate events.
385
+ ///
386
+ /// Events are processed by a handler given to [`process_pending_events`]. Therefore, implementors
387
+ /// should be mindful to avoid lock reentrancy if a handler may call back into the provider.
388
+ ///
389
+ /// [`process_pending_events`]: Self::process_pending_events
385
390
pub trait EventsProvider {
386
391
/// Processes any generated events with the given event handler.
387
392
fn process_pending_events < H : Deref > ( & self , handler : H ) where H :: Target : EventHandler ;
You can’t perform that action at this time.
0 commit comments