promise

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 1 Imported by: 6

README

github.com/nlepage/go-js-promise

Go WebAssembly utility package for interacting with JavaScript promises

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Await

func Await(p js.Value) (js.Value, error)

Await waits for the Promise to be resolved and returns the value or an error if the promise rejected

func New

func New() (p js.Value, resolve func(interface{}), reject func(interface{}))

New creates a new JavaScript Promise

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL