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(resolvefunc, errfunc js.Value) (interface{}, error)) (Promise, error)
- func NewFromJSObject(obj js.Value) (Promise, error)
- func Race(values ...interface{}) (Promise, error)
- func Reject(reason error) (Promise, error)
- func Resolve(result interface{}) (Promise, error)
- func SetTimeout(ms int) (Promise, error)
- type PromiseFrom
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Promise ¶
type Promise struct {
baseobject.BaseObject
}
Promise struct
func AllSettled ¶
func SetTimeout ¶
type PromiseFrom ¶
type PromiseFrom interface {
Promise_() Promise
}
Click to show internal directories.
Click to hide internal directories.