// Package flaky implements mechanisms for executing flaky operations.
package flaky import ( ) // Op is an operation that is likely to fail. type Op func(ctx context.Context) error // Executor is an executor for flaky operations. type Executor interface { // Execute executes a flaky operation f using the execution policy. Execute(ctx context.Context, f Op) error } // ExecutorFunc is a function that implements the [Executor] interface. type ExecutorFunc func(ctx context.Context, f Op) error // Execute implements the [Executor] interface. func ( ExecutorFunc) ( context.Context, Op) error { return (, ) }