https://kotlinlang.org logo
#exposed
Title
# exposed
e

Evan R.

10/17/2019, 7:14 PM
The fact that
newSuspendedTransaction
closes the current transaction at the end of the block is creating a real headache for me. I have suspend functions which will start a new suspended transaction on the IO dispatcher, but they cannot call other suspend functions doing the same thing. Is there a way around this that I’m not seeing? My current workaround is to make separate, private suspending functions which are exposed publicly via a
newSuspendedTransaction
block.
👀 1
t

tapac

10/19/2019, 4:28 PM
Thank you for a report. I was able to reproduce and fix that behavior. Will be available in the next release.
e

Evan R.

10/21/2019, 12:33 PM
Thanks @tapac! The quick response and fix is much appreciated.
m

maxmello

10/24/2019, 8:34 AM
I actually had the same problem and thought it was expected behavior, glad that this will work in the future
16 Views