Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Latch ¶
type Latch struct {
// contains filtered or unexported fields
}
A Latch allows one or more routines to wait for the completion of a set of events. After the events are complete, any waiting routines are released, and subsequent invocations of `Wait` return immediately.
It is conceptually similar to a sync.WaitGroup, primary differences being: - the count is set once at construction; - it is not an error for a latch to receive more than the specified `Done` count.
Click to show internal directories.
Click to hide internal directories.