Good, question. The simple answer is there already is such a construct on the JVM already: the semaphore. People just forget it exists. I wrote an article about it a while back[1].
1. Managing throughput with virtual threads (it's in Clojure, but it's using the underlying Java APIs)