Discover Packages
github.com/bearded-web/bearded
pkg
utils
async
package
Version:
v0.0.0-...-c937b9e
Opens a new window with list of versions in this module.
Published: Jul 17, 2015
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 6
Opens a new window with list of known importers.
Documentation
Documentation
¶
Promise is a basic promise implementation: it wraps calls a function in a goroutine,
and returns a channel which will later return the function's return value.
type Async interface {
Cancel()
Result() <-chan error
}
group asyncs and return grouped err after all async is finished
group asyncs and return err in Result for the first async with error
type GroupError struct {
Errs []error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.