Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Value ¶
type Value[T any] interface { // Val returns the lazily-loaded value contained within this Value. // It will load the value if it wasn't loaded yet. // All callers will block until the value is loaded. Val() T // Err returns the error that occurred while loading the value. // It will load the value if it wasn't loaded yet. // All callers will block until the value is loaded. Err() error // contains filtered or unexported methods }
Value is a generic container offering lazy-loading for values of any type. Safe for concurrent usage.
Click to show internal directories.
Click to hide internal directories.