Source File
events.go
Belonging Package
github.com/failsafe-go/failsafe-go
package failsafeimport ()// ExecutionEvent indicates an execution was attempted.type ExecutionEvent[ any] struct {ExecutionAttempt[]}// ExecutionScheduledEvent indicates an execution was scheduled.type ExecutionScheduledEvent[ any] struct {ExecutionAttempt[]// The delay before the next execution attempt.Delay time.Duration}// ExecutionDoneEvent indicates an execution is done.type ExecutionDoneEvent[ any] struct {ExecutionInfo// The execution result, else the zero value for RResult// The execution error, else nilError error}func newExecutionDoneEvent[ any]( ExecutionInfo, *common.PolicyResult[]) ExecutionDoneEvent[] {return ExecutionDoneEvent[]{ExecutionInfo: ,Result: .Result,Error: .Error,}}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |