funcs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package funcs provides meta-functions for method execution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetryN

func RetryN(method func() (bool, error), retries int) error

RetryN calls method up to retries times with exponential backoff until no error is returned.

func RetryUnlimited

func RetryUnlimited(method func() (bool, error)) error

RetryUnlimited calls method as many times as required with constant backoff until no error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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