package bus import "context" var DefaultEmitter = New() func Emit(ctx context.Context, topic string, data any) { DefaultEmitter.Emit(ctx, topic, data) } func Listen(topic string, listener Listener, options ...ListenOption) { DefaultEmitter.Listen(topic, listener, options...) } func Cancel(topic string, listeners ...Listener) { DefaultEmitter.Cancel(topic, listeners...) }