backoff

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package backoff provides backoff functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(attempts int) time.Duration

Do is a function x^e multiplied by a factor of 0.1 second. Result is limited to 2 minute. Original source: github.com/micro/go-micro/v3/util/backoff/backoff.go

func Sleep

func Sleep(sec int)

Sleep where no data to sleep rnd * 2 + sec time.Duration

Types

This section is empty.

Jump to

Keyboard shortcuts

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