Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBus ¶
type EventBus[T any] struct { // contains filtered or unexported fields }
This is mostly stateless EventBus with one modification: Any new subscriber will get the last published event for a topic immediately after subscribing.
TODO: Can this cache be improved(ttl or something) or is it too simple to concern myself with?
func (*EventBus[T]) Unsubscribe ¶
Click to show internal directories.
Click to hide internal directories.