https://kotlinlang.org logo
m

MrPowerGamerBR

05/09/2020, 5:50 PM
Not sure if this is intentional, but... If you use
suspendedTransactionAsync
and a normal blocking
transaction
in the same coroutine, Exposed (well, in this case, HikariCP) throws a
Connection is closed
exception. Is this intentional? If I change the
suspendedTransactionAsync
to a normal
transaction
again, the issue goes away. If I change every
transaction
to a
suspendedTransactionAsync
, the issue also goes away. I found that bug when I found out that Exposed does support coroutines so I decided to start replacing some of my old blocking transactions with coroutine-aware methods
👀 1
w

waltermcq

05/12/2020, 12:13 AM
@MrPowerGamerBR I am having the exact same problem, can you post here if you find a solution?
m

MrPowerGamerBR

09/19/2020, 7:16 PM
@waltermcq very very very late response, but this bug was fixed in Exposed 🙂
8 Views