package backoff

import "github.com/libp2p/go-libp2p/p2p/host/basic/internal/backoff"

Index

Types

type ExpBackoff

type ExpBackoff struct {
	Delay    time.Duration
	MaxDelay time.Duration
	// contains filtered or unexported fields
}

func (*ExpBackoff) Run

func (b *ExpBackoff) Run(f func() error) (err error, ran bool)

Source Files

backoff.go

Version
v0.42.0 (latest)
Published
Jun 18, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
1 week ago

Tools for package owners.