Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wait ¶
type Wait interface { // Register waits returns a chan that waits on the given ID. // The chan will be triggered when Trigger is called with // the same ID. Register(id uint64) <-chan interface{} // Trigger triggers the waiting chans with the given ID. Trigger(id uint64, x interface{}) IsRegistered(id uint64) bool }
Wait is an interface that provides the ability to wait and trigger events that are associated with IDs.
func NewWithResponse ¶
func NewWithResponse(ch <-chan interface{}) Wait
func NewWithStats ¶
func NewWithStats(summaryVec *prometheus.SummaryVec, summaryVecLabel string) Wait
New creates a Wait.
Click to show internal directories.
Click to hide internal directories.