enter

suspend fun enter(): Unit

Enters the semaphore.

If the number of permits didn’t reach limit, this function will return immediately. If the limit is reached, it will wait until leave is call from other coroutine.