promise

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(on js.Value, name string, fn func(js.Value, []js.Value) (any, error))

Set sets a function on the given object that returns a promise that get's either resolved with the return value of the function, or rejected with the error returned by the function.

Example usage: promise.Set(js.Global(), "myFunction", func(...))

Types

This section is empty.

Jump to

Keyboard shortcuts

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