mirror of
https://github.com/tailscale/tailscale.git
synced 2025-06-28 19:18:40 +00:00
util/eventbus: fix docstrings (#16401)
Updates #15160 Signed-off-by: Claus Lensbøl <claus@tailscale.com>
This commit is contained in:
parent
df786be14d
commit
53f67c4396
@ -40,8 +40,8 @@ type Bus struct {
|
|||||||
clients set.Set[*Client]
|
clients set.Set[*Client]
|
||||||
}
|
}
|
||||||
|
|
||||||
// New returns a new bus. Use [PublisherOf] to make event publishers,
|
// New returns a new bus. Use [Publish] to make event publishers,
|
||||||
// and [Bus.Queue] and [Subscribe] to make event subscribers.
|
// and [Subscribe] and [SubscribeFunc] to make event subscribers.
|
||||||
func New() *Bus {
|
func New() *Bus {
|
||||||
ret := &Bus{
|
ret := &Bus{
|
||||||
write: make(chan PublishedEvent),
|
write: make(chan PublishedEvent),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user