Discover Packages
github.com/entanglesoftware/ekart
internal
retry
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 1, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package retry provides the backoff and context-aware sleep primitives used
by the ekart client's transport layer. It is internal and not part of the
public API.
Backoff returns the delay before the given (1-based) retry attempt, using
exponential growth with full jitter, capped at maxDelay.
Sleep pauses for d or until ctx is done, whichever comes first. It returns
ctx.Err() if the context is cancelled before the delay elapses.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.