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

gildor

12/27/2017, 8:29 AM
also there is a feature request to simplify such code like your https://github.com/Kotlin/kotlinx.coroutines/issues/171
👍 1
q

qwert_ukg

12/27/2017, 8:32 AM
it should be useful
g

gildor

12/27/2017, 8:32 AM
yes, but you can write simple version yourself until such extension not available
q

qwert_ukg

12/27/2017, 8:35 AM
I want to use Kotlin classes inside java spring app. Where a lot of call of other actions inside another action of controller. There are many blocking call instead of async
How do u think, it is possible to include a little bit of kotlin into biggest java app? or will be better use Future/Promise?
instead of coroutines
g

gildor

12/27/2017, 8:37 AM
I think it’s complicated question, but I don’t see any problems to try. Coroutines allow to write much more clear async code at least, also, you can rewrite blocking calls to non-blocking and probably improve scalability.
but imo coroutines much better than Future/Promise
q

qwert_ukg

12/27/2017, 8:43 AM
Thanks!
Was inspired 🙂
2 Views