Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedGroup ¶ added in v0.15.0
type CachedGroup[T any] struct { // CacheError defines if error results should also be cached. // It is not safe to change this value after the first call to Do. // Context cancellation errors are never cached. CacheError bool // contains filtered or unexported fields }
Group is a flightcontrol synchronization group that memoizes the results of a function and returns the cached result if the function is called with the same key. Don't use with long-running groups as the results are cached indefinitely.
Click to show internal directories.
Click to hide internal directories.