aem-plugin / com.cognifide.gradle.aem.common.build / Parallel

Parallel

object Parallel

Functions

each

fun <A> each(iterable: Iterable<A>, callback: CoroutineScope.(A) -> Unit): Unit

map

fun <A, B : Any> map(iterable: Iterable<A>, mapper: CoroutineScope.(A) -> B): Collection<B>
fun <A, B : Any> map(iterable: Iterable<A>, filter: (A) -> Boolean, mapper: CoroutineScope.(A) -> B): List<B>

poolEach

fun <A> poolEach(threads: Int, name: String, iterable: Iterable<A>, callback: CoroutineScope.(A) -> Unit): Unit

poolMap

fun <A, B : Any> poolMap(threads: Int, name: String, iterable: Iterable<A>, mapper: CoroutineScope.(A) -> B): List<B>

with

fun <A> with(iterable: Iterable<A>, callback: A.() -> Unit): Unit