I have a microservice on which I am using Kotlin coroutines to perform a bunch of db queries asynchronously, and I want to monitor the execution time for each one of those queries for potential performance optimization. The implementation I have is like this: As you can see I use Semaphore to limit the number of parallel jobs, and all
Tag: coroutine
How to call Kotlin suspending coroutine function from Java 7
I’m trying to call Kotlin function from Java 7. I’m using coroutines and this called function is suspending, for example: I was using coroutines in version 0.25.3 and I could emulate simple Java callback style by passing Continuation<U> instance as an argument to suspending function, e.g. However, after updating to fully stable 1.0.1 release, I think it’s no longer possible.