Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorWaitGroup ¶
type ErrorWaitGroup struct {
// contains filtered or unexported fields
}
ErrorWaitGroup is a wait group that returns the first error occured
func NewErrorWaitGroup ¶
func NewErrorWaitGroup(size int) *ErrorWaitGroup
NewErrorWaitGroup makes a new ErrorWaitGroup of size n
func (*ErrorWaitGroup) Done ¶
func (wg *ErrorWaitGroup) Done(err error)
Done pops a number from the wait group
func (*ErrorWaitGroup) Wait ¶
func (wg *ErrorWaitGroup) Wait() (err error)
Wait blogs until the wait group finished and returns the error if any
Click to show internal directories.
Click to hide internal directories.