https://kotlinlang.org logo
t

tapac

12/12/2017, 12:12 PM
Exposed doesn't support coroutines yet. Can you share your use-cases of how you going to use it? Should new short transaction be created for every async block? I hope you understand that you can't share same transaction for couroutines or it became synchronous code.
u

uesugi

12/13/2017, 12:51 AM
Thank you for reply, I play with spring webflux reactive application with kotlinx.coroutine reactive support kotlinx-coroutines-reactor . So TheadLocal based transaction manager does not supported any more. also I found this link
https://stackoverflow.com/questions/46227462/how-to-use-code-that-relies-on-threadlocal-with-kotlin-coroutines
There is any idea for this?
after some research and many reason, I give up. Thank you very much.
t

tapac

12/13/2017, 2:48 PM
Will look closer to both links, but I think that it's unsolvable problem with blocking nature of jdbc that will prevent from concurrent requests within single transaction.