Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProgressor ¶
func NewProgressor() *progressor
///////////////////////////////////////////////////////////////////////////////////// NewProgressor /////////////////////////////////////////////////////////////////////////////////////
func OnComposingError ¶
func OnComposingError(errorFunc ErrorFunc)
///////////////////////////////////////////////////////////////////////////////////// OnComposingError /////////////////////////////////////////////////////////////////////////////////////
Types ¶
type Deferred ¶
type Deferred struct {
// contains filtered or unexported fields
}
func Defer ¶
func Defer(init ...interface{}) *Deferred
///////////////////////////////////////////////////////////////////////////////////// Defer creates a Deferred datatype. A Deferred can be resolved by value(s), func(s) Promise or Deferred. /////////////////////////////////////////////////////////////////////////////////////
func (*Deferred) Done ¶
func (d *Deferred) Done() []interface{}
///////////////////////////////////////////////////////////////////////////////////// Done /////////////////////////////////////////////////////////////////////////////////////
func (*Deferred) OnProgress ¶
func (d *Deferred) OnProgress(progressFunc ProgressFunc) *Deferred
///////////////////////////////////////////////////////////////////////////////////// OnProgress /////////////////////////////////////////////////////////////////////////////////////
func (*Deferred) Reject ¶
///////////////////////////////////////////////////////////////////////////////////// Reject /////////////////////////////////////////////////////////////////////////////////////
type OnResolveFunc ¶
type ProgressFunc ¶
type ProgressFunc func(data interface{})
type Progressor ¶
type Progressor interface {
Notify(data interface{})
}
type Promised ¶
type Promised struct {
// contains filtered or unexported fields
}
func Promise ¶
func Promise(init ...interface{}) *Promised
///////////////////////////////////////////////////////////////////////////////////// Promise /////////////////////////////////////////////////////////////////////////////////////
func (*Promised) Done ¶
func (p *Promised) Done() []interface{}
///////////////////////////////////////////////////////////////////////////////////// Done /////////////////////////////////////////////////////////////////////////////////////
func (*Promised) Finally ¶
func (p *Promised) Finally(init interface{})
///////////////////////////////////////////////////////////////////////////////////// Finally /////////////////////////////////////////////////////////////////////////////////////
func (*Promised) OnProgress ¶
func (p *Promised) OnProgress(progressFunc ProgressFunc) *Promised
///////////////////////////////////////////////////////////////////////////////////// OnProgress /////////////////////////////////////////////////////////////////////////////////////