Evan Borgstrom
dccb0d859c
Undo breaking API change
2019-09-26 10:00:18 +08:00
Evan Borgstrom
3e39e52ddf
Fix concurrent access data race
2019-09-25 09:59:28 +08:00
Evan Borgstrom
f452bc980a
Add test to prove the data race
2019-09-25 09:58:55 +08:00
Jose De La O
13a5cc4b99
adding copy feature and removing nested if/else
2018-09-03 02:52:33 -04:00
Joshua Gentes
2d358da93d
gofmt styling
2016-08-04 17:27:51 -04:00
Joshua Gentes
ac9a0aaf07
Short-circuit the backoff algorithm.
2016-08-04 17:09:58 -04:00
Jaime Pillora
0496a6c14d
add get currrent attempt method with test ( closes #2 )
2016-04-14 15:52:04 +10:00
Keegan Carruthers-Smith
741535fc02
Add ForAttempt
...
See documentation for motivation.
2016-03-01 17:31:41 +02:00
Daniel Wakefield
491389a93e
Add Jitter to backoff.
...
Amazon recently wrote about performance gains of using jitter in
concurrent systems. http://www.awsarchitectureblog.com/2015/03/backoff.html
Seemed simple enough to add and wont change any code that may already be
using Backoff.
2015-03-06 14:42:27 +00:00
Jaime Pillora
041f4462d5
simplified further, added more tests
2015-03-04 02:44:54 +11:00
Jaime Pillora
34204cc40b
initial, tests passing
2015-02-28 17:21:18 +11:00