Source File
once.go
Belonging Package
go.pact.im/x/flaky
package flaky
import (
)
type onceExecutor struct{}
// Once returns a new executor that does not retry operations. That is,
// it executes the operation exactly once and returns the result.
func () Executor {
return (*onceExecutor)(nil)
}
// Execute implements the Executor interface.
func (*onceExecutor) ( context.Context, Op) error {
return unwrapInternal(())
}
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)