Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelGroup ¶
type CancelGroup struct {
// contains filtered or unexported fields
}
func (*CancelGroup) Go ¶
func (g *CancelGroup) Go(f fc)
Go calls the given function in a new goroutine.
The first call to return a non-nil error cancels the group; its error will be returned by Wait.
func (*CancelGroup) Wait ¶
func (g *CancelGroup) Wait() error
Wait blocks until all function calls from the Go method have returned, then returns the first non-nil error (if any) from them.
type ContinueGroup ¶
type ContinueGroup struct {
// contains filtered or unexported fields
}
func (*ContinueGroup) Go ¶
func (g *ContinueGroup) Go(f fc)
Go calls the given function in a new goroutine.
The first call to return a non-nil error cancels the group; its error will be returned by Wait.
func (*ContinueGroup) Wait ¶
func (g *ContinueGroup) Wait() error
Wait blocks until all function calls from the Go method have returned, then returns the first non-nil error (if any) from them.
Click to show internal directories.
Click to hide internal directories.