https://kotlinlang.org logo
Title
d

Dalinar

01/30/2019, 4:49 AM
what kind of exception handling is for
future { }
?
g

gildor

01/30/2019, 5:06 AM
What do you mean?
d

Dalinar

01/30/2019, 5:06 AM
i think my exception is getting swallowed
how can I access my exception?
g

gildor

01/30/2019, 5:08 AM
same way as you do with any other CompletableFuture exceptions. Just try google
CompletableFuture exception handling
d

Dalinar

01/30/2019, 5:08 AM
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

gildor

01/30/2019, 6:14 AM
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

Dalinar

01/30/2019, 6:14 AM
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