Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiError ¶
type MultiError struct {
// contains filtered or unexported fields
}
MultiError can be used to run multiple goroutines that might return an error, wait for all the goroutines and return joined errors as a single one.
func (*MultiError) Go ¶
func (m *MultiError) Go(fn func() error)
Go runs a function in a separate goroutine.
func (*MultiError) Wait ¶
func (m *MultiError) Wait() error
Wait waits for all the goroutines to finish and returns joined errors as a single one.
Click to show internal directories.
Click to hide internal directories.