Maybe because of this: - `testA()` is only called...
# coroutines
s
Maybe because of this: -
testA()
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