parallelOf

fun <I, O> parallelOf(node: FunctionNode<I, O>, maxParallelWorkers: Int? = null): FunctionNode<List<I>, List<O>>

Wraps node in a parallel-worker FunctionNode that runs it on each item of a list input concurrently (optionally bounded by maxParallelWorkers) and outputs the results in input order, primarily for Java callers. A non-list input runs as one item, and node checks each item against its own schemas.

Throws