rutil

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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 ContinueWorkingOption struct {
	DefaultRetryInterval time.Duration
}

type WaitDuration

type WaitDuration time.Duration
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL