Versions in this module Expand all Collapse all v1 v1.0.1 Mar 26, 2020 Changes in this version type Promise + func (p *Promise) GetChan() chan PromiseResult + type PromiseResult struct + Err error + Value interface{} v1.0.0 Mar 26, 2020 Changes in this version + type Promise struct + func NewPromise(value interface{}) *Promise + func (p *Promise) Catch(f func(err error)) *Promise + func (p *Promise) CatchCase(targetErr error, f func(err error)) *Promise + func (p *Promise) CatchDefault(f func(err error)) *Promise + func (p *Promise) Delay(d time.Duration) *Promise + func (p *Promise) Finally(f func(interface{}, error)) (interface{}, error) + func (p *Promise) Reject(err error) + func (p *Promise) Resolve(res interface{}) + func (p *Promise) Tap(f func(interface{})) *Promise + func (p *Promise) Then(f interface{}) *Promise + type RejectFunc func(err error) + type ResolveFunc func(res interface{})