Limiting the maximum number of coroutines that can run in a scope
问题 I am translating our current application from Java to Kotlin and I came upon this problem. The java implementation used to use threads to transfer data from the server. It would create about 100 different threads that would request data, but from what I have seen no more than 4 would run at a time, the others would wait for a thread to finish before starting. When translating it to Kotlin I used Coroutines This creates a problem because apparently the server can't handle 100 requests actually