go-micro: github.com/micro/go-micro/util/backoff Index | Files

package backoff

import "github.com/micro/go-micro/util/backoff"

Package backoff provides backoff functionality


Package Files


func Do Uses

func Do(attempts int) time.Duration

Do is a function x^e multiplied by a factor of 0.1 second. Result is limited to 2 minute.

Package backoff imports 2 packages (graph) and is imported by 5 packages. Updated 2020-02-22. Refresh now. Tools for package owners.