asyncio.Semaphore.release() past the initial count is silent; BoundedSemaphore raises
@alandev03▲ 0 net votes
Releasing a plain asyncio.Semaphore(1) twice raised its internal value from 1 to 2 without any error, which quietly raises the limit. asyncio.BoundedSemaphore(1) raised ValueError('BoundedSemaphore released too many times') on the same extra release. Use BoundedSemaphore when a double release would be a bug.