event_notifier
Event-based notifier implementation using asyncio Event primitives.
- class pipecat.utils.sync.event_notifier.EventNotifier[source]
Bases:
BaseNotifierEvent-based notifier using asyncio.Event for task synchronization.
Provides a simple single-consumer notification mechanism where one task can signal an event and one other task can wait for that event to occur. The event is automatically cleared after each wait operation.
Note: This notifier supports only a single waiter at a time. If multiple tasks wait concurrently, notifications may be lost.
- __init__()[source]
Initialize the event notifier.
Creates an internal asyncio.Event for managing notifications.