2 ms·
I focussed on a example with a happy flow. In Akka Futures you can handle only error conditions of the following type. for example we have future onSuccess fu
by mmaltiar 14y ago
I focussed on a example with a happy flow. In Akka Futures you can handle only error conditions of the following type.
for example we have
future onSuccess
future onFailure
or we have onComplete,
future onComplete {
case Success(result) ⇒ doSomethingOnSuccess(result)
case Failure(failure) ⇒ doSomethingOnFailure(failure)
}
else you can follow what is mentioned by noelwalsh