Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FutureErr ¶
type FutureErr[T any] struct { // contains filtered or unexported fields }
FutureErr is a future which resolves to a value or an error.
func NewFutureErr ¶
NewFutureErr creates a new future which resolves to a T or an error.
Returns the future, and a function which is used to set the future's value/error. Calls to the future's Get function will block until this function is called.
Click to show internal directories.
Click to hide internal directories.