Back to godoc.org

Package retry

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package retry contains helpers for doing tight retry loops.

Index

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier