Documentation ¶
Overview ¶
Package concurrency contains utilities for goroutines coordination
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executed ¶
type Executed struct {
// contains filtered or unexported fields
}
Executed can be used to wait for something to be executed, it has a similar semantics to sync.Cond, but with a way to know whether it was already executed once and waiting only if that's not the case.
type MultipleExecuted ¶
type MultipleExecuted []*Executed
MultipleExecuted can be used to wrap multiple Executed conditions that should all be waited
func (MultipleExecuted) Wait ¶
func (m MultipleExecuted) Wait()
Wait waits for the execution for all the conditions in a MultipleExecuted
Click to show internal directories.
Click to hide internal directories.