package util

Import Path
	github.com/failsafe-go/failsafe-go/internal/util (on go.dev)

Dependency Relation
	imports 3 packages, and imported by 2 packages

Involved Source Files util.go
Package-Level Type Names (total 2)
/* sort by: | */
( Clock) CurrentUnixNano() int64 func NewClock() Clock
( Stopwatch) ElapsedTime() time.Duration ( Stopwatch) Reset() func NewStopwatch() Stopwatch
Package-Level Functions (total 9)
Type Parameters: A: any B: any AppliesToAny returns true if any of the biPredicates evaluate to true for the values.
ErrorTypesMatch indicates whether the err or any unwrapped causes of the err are assignable to the target type. This is similar to the test that errors.As performs, but does not actually assign a value and allows a non-pointer target. This method also allows a non-pointer target for an error that's implemented with pointer receivers. Panics if target is nil or not an error.
MergeContexts returns a context that is canceled when either ctx1 or ctx2 are Done.
func NewClock() Clock
Type Parameters: T: number
Type Parameters: T: number
Type Parameters: T: number
Type Parameters: T: number RoundDown returns the input rounded down to the nearest interval.