Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncCounter ¶
type AsyncCounter struct {
// contains filtered or unexported fields
}
AsyncCounter is an async counter
func NewAsyncCounter ¶
func NewAsyncCounter(size int) *AsyncCounter
NewAsyncCounter creates a new AsyncCounter
func (*AsyncCounter) Wait ¶
func (a *AsyncCounter) Wait(total, timeoutSeconds int) error
Wait waits until the total is reached or the timeout happens
Click to show internal directories.
Click to hide internal directories.