https://kotlinlang.org logo
#coroutines
Title
# coroutines
v

vineethraj49

08/11/2020, 12:57 AM
is it possible to create a limiting dispatcher within an existing dispatcher? I'm trying to figure out a way to have say, max(5) threads of Dispatchers.IO as another dispatcher, which I can use in a standalone manner (one way would be
launch
and listen on a channel? with the launch being on the dispatcher?)
o

octylFractal

08/11/2020, 1:01 AM
you might be better served by using a
Semaphore
instead of limiting threads
☝️ 4
🤔 1
3 Views