Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Emitter ¶
type Emitter[T Event[V], V any] interface { Emit(event T) Subscribe(eventName goiamuniverse.Event, subscriber Subscriber[T, V]) }
func NewEmitter ¶
NewEmitter creates a new Emitter instance for the specified event type.
type Subscriber ¶
Click to show internal directories.
Click to hide internal directories.