eventemitter

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter struct {
	// contains filtered or unexported fields
}

Emitter - синхронный отправитель событий.

func New

func New(receivers ...mrsender.EventReceiver) *Emitter

New - создаёт объект Emitter.

func (*Emitter) Emit

func (e *Emitter) Emit(ctx context.Context, eventName string, object any)

Emit - отправляет указанное событие.

Jump to

Keyboard shortcuts

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