promise

package
v0.0.0-...-6e88d74 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGlobalPromiseJSValue

func GetGlobalPromiseJSValue() js.Value

func IsPromiseSupported

func IsPromiseSupported() bool

func ValueIsInstanceOfPromise

func ValueIsInstanceOfPromise(v js.Value) bool

Types

type Promise

type Promise struct {
	JSValue js.Value
}

func NewPromiseFromJSValue

func NewPromiseFromJSValue(jsvalue js.Value) (*Promise, error)

func (*Promise) Then

func (self *Promise) Then(cb js.Func) (*Promise, error)

https://developer.mozilla.org/en-US/docs/Web/ JavaScript/Reference/Global_Objects/Promise/then

func (*Promise) Then2

func (self *Promise) Then2(cb1 js.Func, cb2 js.Func) (*Promise, error)

Jump to

Keyboard shortcuts

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