Thread
#exposed
    tapac

    tapac

    4 years ago
    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

    4 years ago
    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.
    tapac

    tapac

    4 years ago
    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.