retry

package
v0.0.0-...-51f9457 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package retry contains helpers for doing tight retry loops.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Waiter

func Waiter(ctx context.Context, why string, d time.Duration) (sleep func() error, cancel func())

Waiter returns a stateful callback which sleeps a bit on each invocation until reaching a deadline.

It also returns a cancel function which must be called when abandoning the waiter to disarm any pending timers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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