stm
stm copied to clipboard
Add `waitTSemN`
Control.Concurrent.STM.TSem
provides signalTSemN
to release multiple units, but no waitTSemN
to acquire multiple units. It would try to acquire all units at once (like waitQSemN
).