Searched refs:withSemaphore (Results 1 – 2 of 2) sorted by relevance
31 withSemaphore(permits = permits) { mapParallel { withPermit { block(it) } } } in <lambda>()57 withSemaphore(permits = permits) { in mapParallelIndexed()
26 inline fun <R> withSemaphore(permits: Int, block: Semaphore.() -> R): R = method