We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09cc4b7 commit dd3fb93Copy full SHA for dd3fb93
lightning/src/util/events.rs
@@ -381,7 +381,10 @@ pub trait MessageSendEventsProvider {
381
fn get_and_clear_pending_msg_events(&self) -> Vec<MessageSendEvent>;
382
}
383
384
-/// A trait indicating an object may generate events
+/// 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
pub trait EventsProvider {
389
/// Processes any generated events with the given event handler.
390
fn process_pending_events<H: Deref>(&self, handler: H) where H::Target: EventHandler;
0 commit comments