Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBroadcast ¶ added in v3.38.0
type EventBroadcast struct {
// contains filtered or unexported fields
}
EventBroadcast is implementation of broadcast notify about event Zero value is usable, must not copy after first call any method
func (*EventBroadcast) Broadcast ¶ added in v3.38.0
func (b *EventBroadcast) Broadcast()
func (*EventBroadcast) Waiter ¶ added in v3.38.0
func (b *EventBroadcast) Waiter() OneTimeWaiter
Waiter return channel, that will close when next event will be broadcast. For prevent race between subscribe and event client code must subscribe at first, then check condition if false - wait closing channed and check condition again
type OneTimeWaiter ¶ added in v3.38.0
type OneTimeWaiter struct {
// contains filtered or unexported fields
}
func (*OneTimeWaiter) Done ¶ added in v3.38.0
func (w *OneTimeWaiter) Done() <-chan struct{}
Click to show internal directories.
Click to hide internal directories.