Home / Function/ NewExponentialBackoff() — fiber Function Reference

NewExponentialBackoff() — fiber Function Reference

Architecture documentation for the NewExponentialBackoff() function in exponential_backoff.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  937d0b02_5777_2b98_476b_5d658ee97827["NewExponentialBackoff()"]
  8d9e2d11_b2e2_c9a3_6b3e_0aab1fd11114["exponential_backoff.go"]
  937d0b02_5777_2b98_476b_5d658ee97827 -->|defined in| 8d9e2d11_b2e2_c9a3_6b3e_0aab1fd11114
  style 937d0b02_5777_2b98_476b_5d658ee97827 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

addon/retry/exponential_backoff.go lines 29–38

func NewExponentialBackoff(config ...Config) *ExponentialBackoff {
	cfg := configDefault(config...)
	return &ExponentialBackoff{
		InitialInterval: cfg.InitialInterval,
		MaxBackoffTime:  cfg.MaxBackoffTime,
		Multiplier:      cfg.Multiplier,
		MaxRetryCount:   cfg.MaxRetryCount,
		currentInterval: cfg.currentInterval,
	}
}

Domain

Subdomains

Frequently Asked Questions

What does NewExponentialBackoff() do?
NewExponentialBackoff() is a function in the fiber codebase, defined in addon/retry/exponential_backoff.go.
Where is NewExponentialBackoff() defined?
NewExponentialBackoff() is defined in addon/retry/exponential_backoff.go at line 29.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free