Join Slack
Communities
Powered by
Semaphores make sense with threads, since threads ...
# coroutines
e
elizarov
10/19/2017, 5:33 AM
Semaphores make sense with threads, since threads are expensive and you would not always create a pool of
n
threads just to limit some resource to at most
n
concurrent operations on it. With coroutines the cost equation is completely different. Creating a pool of
n
coroutines for that is a no-brainer.
Open in Slack
Previous
Next