Causes an asynchronous side effect in case the future fails.
Causes an asynchronous side effect in case the future fails.
Note that the original future is returned, meaning that it will be completed before the action has completed.
Map over the inner Try[A]
completion value of the future,
rather than the A
success value like the normal scala.concurrent.Future.map method.
Converts the "inner Try" of the Future to an option, wrapping successful values in Some and replacing failures with None.
Converts the "inner Try" of the Future to an option, wrapping successful values in Some and replacing failures with None.
This is useful if the result will just not be used in the case of an error.
Flat-map over the inner Try[A]
completion value of the future,
rather than the A
success value like the normal scala.concurrent.Future.flatMap method.
Flat-map over the inner Try[A]
completion value of the future,
rather than the A
success value like the normal scala.concurrent.Future.flatMap method.
Note that this method is provided by scala.concurrent.Future starting in Scala 2.12.