runtime

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreError

func IgnoreError(err error)

accepts error and logs error message. Used to prevent warnings when errors not caught.

func IgnoreErrorMultiReturn

func IgnoreErrorMultiReturn(i interface{}, err error)

func RemoveTicker added in v0.5.1

func RemoveTicker(name string)

Types

type FunctionRetry added in v0.5.1

type FunctionRetry struct {
	Ticker *time.Ticker
	// contains filtered or unexported fields
}

ResettableFunctionTicker will reset the user state as soon as tick is delivered.

func NewRetryTicker added in v0.5.1

func NewRetryTicker(ctx context.Context, name string, option ...FunctionRetryOption) *FunctionRetry

func (*FunctionRetry) Do added in v0.5.1

func (t *FunctionRetry) Do(f func(), cancel_f func(), deadline_f func())

type FunctionRetryOption added in v0.5.1

type FunctionRetryOption func(*FunctionRetry)

func WithRetryDuration added in v0.5.1

func WithRetryDuration(d time.Duration) FunctionRetryOption

type ResettableFunctionTicker added in v0.5.1

type ResettableFunctionTicker struct {
	Ticker    *time.Ticker
	ResetChan chan struct{} // channel used to reset the ticker

	Started bool
	// contains filtered or unexported fields
}

ResettableFunctionTicker will reset the user state as soon as tick is delivered.

func GetTicker added in v0.5.1

func NewResettableFunctionTicker added in v0.5.1

func NewResettableFunctionTicker(name string, option ...ResettableFunctionTickerOption) *ResettableFunctionTicker

func (*ResettableFunctionTicker) Do added in v0.5.1

func (t *ResettableFunctionTicker) Do(f func())

type ResettableFunctionTickerOption added in v0.5.1

type ResettableFunctionTickerOption func(*ResettableFunctionTicker)

func WithDuration added in v0.5.1

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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