Fix comment in Backoff Supervisor example

This commit is contained in:
Guillermo Lammers 2017-04-19 23:31:06 +02:00 committed by Konrad `ktoso` Malawski
parent 09f51c8004
commit c8ff39e6c2

View file

@ -86,7 +86,7 @@ class BackoffSupervisorDocSpec {
minBackoff = 3.seconds,
maxBackoff = 30.seconds,
randomFactor = 0.2 // adds 20% "noise" to vary the intervals slightly
).withAutoReset(10.seconds) // the child must send BackoffSupervisor.Reset to its parent
).withAutoReset(10.seconds) // reset if the child does not throw any errors within 10 seconds
.withSupervisorStrategy(
OneForOneStrategy() {
case _: MyException => SupervisorStrategy.Restart