event

package
v0.0.0-...-41ddf2c Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty[T any]() events.Event[T]

Empty creates a new event instance which will not error but will not allow observers to be added nor invoked.

This should be used when an event is not available so that attempting to add an observer to an event will not require the event assignment to first check if the event is nil or not.

func New

func New[T any]() events.Event[T]

New creates a new event instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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