Versions in this module Expand all Collapse all v1 v1.5.0 Apr 6, 2025 Changes in this version + type Publisher struct + func NewPublisher[T any]() *Publisher[T] + func (p *Publisher[T]) GetSubscriberCount() int + func (p *Publisher[T]) Publish(event T) + func (p *Publisher[T]) Subscribe(subscriber Subscriber[T]) + func (p *Publisher[T]) Unsubscribe(subscriberID string) + type Subscriber interface + GetID func() string + OnEvent func(event T)