Documentation
¶
Overview ¶
Package future provides a value that one goroutine sets once and others wait for.
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 }
Future is a value that is set at most once. Once set it never changes, so waiters may keep using it without a lock.
Click to show internal directories.
Click to hide internal directories.