Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContinueWorking ¶
func ContinueWorking(ctx context.Context, logger logs.Logger, f func(ctx context.Context) WaitDuration, opFuncs ...ContinueWorkerOptionFunc)
Types ¶
type ContinueWorkerOptionFunc ¶
type ContinueWorkerOptionFunc func(*ContinueWorkingOption)
func WithContinueWorkingDefaultRetryInterval ¶
func WithContinueWorkingDefaultRetryInterval(interval time.Duration) ContinueWorkerOptionFunc
type ContinueWorkingOption ¶
type WaitDuration ¶
var ( ContinueWorkingAbort WaitDuration = -3 // negative numbers are reserved for loop control. ContinueWorkingImmediately WaitDuration = -2 ContinueWorkingWithDefaultInterval WaitDuration = -1 )
func ContinueWorkingWithCustomInterval ¶
func ContinueWorkingWithCustomInterval(d time.Duration) WaitDuration
Click to show internal directories.
Click to hide internal directories.