github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/retry/backoff.go (about) 1 package retry 2 3 import ( 4 "time" 5 6 "github.com/ydb-platform/ydb-go-sdk/v3/internal/backoff" 7 ) 8 9 // Backoff makes backoff object with custom params 10 func Backoff(slotDuration time.Duration, ceiling uint, jitterLimit float64) backoff.Backoff { 11 return backoff.New( 12 backoff.WithSlotDuration(slotDuration), 13 backoff.WithCeiling(ceiling), 14 backoff.WithJitterLimit(jitterLimit), 15 ) 16 }