what kind of exception handling is for `future { }...
# coroutines
d
what kind of exception handling is for
future { }
?
g
What do you mean?
d
i think my exception is getting swallowed
how can I access my exception?
g
same way as you do with any other CompletableFuture exceptions. Just try google
CompletableFuture exception handling
d
thanks
@gildor I googled but it seems that exceptions should appear from my
future { }.get()
- however I have a bug where it appears like some invisible exception is happening, and I have no other explanation as to what it could be other than some invisible exception, so I'm wondering if there is any other way suspendable code running in a
future { }
could swallow and exception so that it does not get thrown by
future {}. get()
?
g
Side note. I don’t think that future{}.get() is good way to work with future
Could you show some example. Hard to say something without code
d
that is something I'll look into when I get around to migrating to 1.3 coroutines, for now I'm just trying to get this code working again
ok i'll try to come up with a concise illustration of the problem