Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Future ¶
type Future[T any] struct { // contains filtered or unexported fields }
A Future holds a value that might not be available yet.
func NewFuture ¶
NewFuture returns a new future and a function that completes that future with the given value. The returned complete function becomes a no-op after the first usage.
Click to show internal directories.
Click to hide internal directories.