https://kotlinlang.org logo
#coroutines
Title
# coroutines
d

detouched

10/13/2017, 12:56 PM
@elizarov How will that help with awaiting for the first actually successful coroutine? Never failing one will still have to return something — some "empty" value I guess. Or do you mean keeping this approach but simplifying it by calling self in
onAwait
instead of
catch
in the case
result
is "empty"? I'm actually interested in the failures in some cases, so I need to somehow pass them through anyway to inspect them later.
e

elizarov

10/13/2017, 1:03 PM
Good point!
2 Views