Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoResult = errors.New("no result in future")
ErrNoResult is returned when there was no result
Functions ¶
func Load ¶
func Load(loaders ...LoaderFunc)
Types ¶
type Future ¶
type Future struct {
// contains filtered or unexported fields
}
Future - a shortcut for waiting on the result channel for a result or error.
func NewFuture ¶
NewFuture - instantiate a new future. The result provider must close resultCh after providing a single result.
func NewFutureError ¶
NewFutureError instantiate a new future but have it immediately return as an error
type LoaderFunc ¶
type LoaderFunc func()
Click to show internal directories.
Click to hide internal directories.