Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedGroup ¶
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.
type Group ¶
type Group[T any] struct { // contains filtered or unexported fields }
Group is a flightcontrol synchronization group
type RetryableError ¶ added in v0.19.6
type RetryableError struct {
Err error
}
func (RetryableError) Error ¶ added in v0.19.6
func (e RetryableError) Error() string
func (RetryableError) Unwrap ¶ added in v0.19.6
func (e RetryableError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.