Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
type Func func(v interface{}) (ret interface{}, err error)
Func is the handler of promise. The argument v is for passing all arguments.
type Promise ¶
type Promise struct {
// contains filtered or unexported fields
}
Promise executes its handlers and catches error
Click to show internal directories.
Click to hide internal directories.