Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Promise ¶
type Promise[T any] struct { // contains filtered or unexported fields }
Promise is an asynchronous result to an operation.
func NewPromiseWithErr ¶
NewPromiseWithErr constructs a promise pre-resolved with an error.
func NewPromiseWithResult ¶
NewPromiseWithResult constructs a promise pre-resolved with a result.
Click to show internal directories.
Click to hide internal directories.