<Kotlin - Exposed. How to run multiple tasks concu...
# stackoverflow
r
Kotlin - Exposed. How to run multiple tasks concurrently on the same transaction with exposed? I'm trying to make some work run concurrently to speed up the process. Instead of running a batch job synchronously i want to run individual tasks with 10 threads/coroutines. I want to process this all on a single transaction. If 1 job failed, the entire batch should be rollbacked. Unfortunately, the code that i'm calling contains a lot of the following blocks. Also in code that i cannot change: transaction { } These are several layers deep and i cannot change that. Under the hood this seems...