Documentation
¶
Overview ¶
Example (Subscribers) ¶
subs := newSubscribers(64) subs.add(1) subs.add(1) subs.add(1) fmt.Println(subs.count(1))
Output: mjau
Index ¶
- func Pub(b *Bus, topic Topic)
- func PubVal[T any](b *Bus, topic Topic, v *T)
- func Sub(b *Bus, topic Topic, cb func(context.Context))
- func SubVal[T any](b *Bus, topic Topic, cb func(context.Context, *T))
- func Unsub(b *Bus, topic Topic, cb func(context.Context))
- func UnsubVal[T any](b *Bus, topic Topic, cb func(context.Context, *T))
- type Bus
- type Topic
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.