Semaphores make sense with threads, since threads ...
# coroutines
e
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.