package tdsync

import (
	
	

	
)

type syncBackoff struct {
	b   backoff.BackOff
	mux sync.Mutex
}

func ( *syncBackoff) () time.Duration {
	.mux.Lock()
	 := .b.NextBackOff()
	.mux.Unlock()
	return 
}

func ( *syncBackoff) () {
	.mux.Lock()
	.b.Reset()
	.mux.Unlock()
}

// SyncBackoff decorates backoff.BackOff to be thread-safe.
func ( backoff.BackOff) backoff.BackOff {
	return &syncBackoff{b: }
}