Documentation ¶
Index ¶
- Variables
- func GetInterface() js.Value
- type Promise
- func All(values ...interface{}) (Promise, error)
- func AllSettled(values ...interface{}) (Promise, error)
- func Any(values ...interface{}) (Promise, error)
- func New(handler func() (interface{}, error)) (Promise, error)
- func NewFromJSObject(obj js.Value) (Promise, error)
- func Race(values ...interface{}) (Promise, error)
- func SetTimeout(handler func() (interface{}, error), ms int) (Promise, error)
- func (p Promise) Async(resolve func(baseobject.BaseObject) *Promise, reject func(error)) error
- func (p Promise) Await() (interface{}, error)
- func (p Promise) Catch(reject func(error)) error
- func (p Promise) Finally(f func()) error
- func (p Promise) Promise() Promise
- func (p Promise) Then(resolve func(interface{}) *Promise, reject func(error)) error
- type PromiseFrom
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetInterface ¶
GetInterface get teh JS interface of broadcast channel
Types ¶
type Promise ¶
type Promise struct {
baseobject.BaseObject
}
Promise struct
func AllSettled ¶
func (Promise) Async ¶
func (p Promise) Async(resolve func(baseobject.BaseObject) *Promise, reject func(error)) error
will be deprecated
type PromiseFrom ¶
type PromiseFrom interface {
Promise() Promise
}
Click to show internal directories.
Click to hide internal directories.