//arrow-fx-stm/arrow.fx.stm/newTSem
common fun STM.newTSem(initial: Int): TSemaphore
Do you like Arrow?