Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
Debug enables debug logging.
Functions ¶
func ProcessAllEvents ¶
ProcessAllEvents processes all events.
Types ¶
type EventType ¶
type EventType[T any] struct { // contains filtered or unexported fields }
Event represents kind of event. It is used to subscribe and publish events.
func (*EventType[T]) ProcessEvents ¶
ProcessEvents processes events.
func (*EventType[T]) Unsubscribe ¶ added in v1.3.3
Unsubscribe removes a subscriber for the event.
type Subscriber ¶
Subscriber is a function that handles an event.
Click to show internal directories.
Click to hide internal directories.