Documentation ¶
Index ¶
Constants ¶
View Source
const FrameworkEvent = 0
Variables ¶
This section is empty.
Functions ¶
func Emit ¶
func Emit[T frameworkEvent](ev T)
Emit writes an event into the dispatcher. This functions same way as Publish() but uses the default dispatcher instead.
func On ¶
func On[T frameworkEvent](handler func(T)) context.CancelFunc
On subscribes to an event, the type of the event will be automatically inferred from the provided type. Must be constant for this to work. This functions same way as Subscribe() but uses the default dispatcher instead.
func OnType ¶
func OnType[T frameworkEvent](eventType uint32, handler func(T)) context.CancelFunc
OnType subscribes to an event with the specified event type. This functions same way as SubscribeTo() but uses the default dispatcher instead.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.