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 ¶
- Version
- v0.41.1 (latest)
- Published
- Mar 24, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 2 weeks ago –
Tools for package owners.