[ijent benchmarks] AT-876 Benchmark test on newByteChannel

GitOrigin-RevId: 0e7da059b819d14d135e11a2eb7da3f18bd13ee2
This commit is contained in:
Nikita Kudrin
2024-07-30 10:25:31 +03:00
committed by intellij-monorepo-bot
parent 87ee443fdc
commit 508244fa66

View File

@@ -88,4 +88,10 @@ suspend fun <TInput, TOutput> Iterable<TInput>.mapConcurrently(
}
}
}.awaitAll()
}
}
/** @see [mapConcurrently]] */
suspend fun <TInput, TOutput> Sequence<TInput>.mapConcurrently(
maxConcurrency: Int,
transform: suspend (TInput) -> TOutput,
) = this.asIterable().mapConcurrently(maxConcurrency, transform)