event

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const FrameworkEvent = 0

Variables

This section is empty.

Functions

func Close

func Close()

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL