package
Version:
v0.0.0-...-f5de9ae
Opens a new window with list of versions in this module.
Published: Apr 21, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewGo() (resolve, reject Resolver, promise Go)
func (p Go) Await() (interface{}, error)
func (p Go) Catch(fn func(rejectedReason interface{}) interface{}) Promise
func (p Go) Then(fn func(value interface{}) interface{}) Promise
type Promise interface {
Then(fn func(value interface{}) interface{}) Promise
Catch(fn func(value interface{}) interface{}) Promise
Await() (interface{}, error)
}
type Resolver func(interface{})
Source Files
¶
Click to show internal directories.
Click to hide internal directories.