Events API
ALL_COMPLETED
module-attribute
FIRST_COMPLETED
module-attribute
FIRST_EXCEPTION
module-attribute
__all__
module-attribute
__all__ = [
"ALL_COMPLETED",
"FIRST_COMPLETED",
"FIRST_EXCEPTION",
"Event",
"EventBus",
"EventResult",
"EventState",
"EventStatesGroup",
"ScheduleEvent",
"pub",
"sub",
]
EventBus
__middleware
instance-attribute
__schedules
instance-attribute
get
async
subscribe
subscribe[E: Event](
event_type: type[E],
handler: BaseNullableAction[E, Any]
| BaseAction[E, Any]
| BaseSequenceAction[E, Any],
) -> None
publish
async
as_completed
async
as_completed[E: Eventable](
event_states_group: EventStatesGroup[*tuple[E, ...],],
) -> AsyncIterator[EventState[E]]
__run_schedule
async
staticmethod
Event
Bases: BaseSchema
EventResult
EventState
EventStatesGroup
ScheduleEvent
Bases: Event