streetsofboston
02/08/2019, 2:22 PMtestA() is only called once, because its Job (Deferred) is created only once, and a Job can only be run once.
- Then testB() is called and the deffered.await() will throw an exception: (ticker == 0), then ticker becomes 1 and an exception is thrown, because its Job(Deferred) is run.
- Then your exception-handler for the launch kicks in and it will retry testA()
- You deferred is still the same Job/Deferred and it won’t be re-run. It just will throw that same original exception again.
- Then your exception-handler for the launch kicks in and it will retry testA(), etc etc