execute

abstract fun <T> execute(chunks: List<<Error class: unknown class>>, extract: (<Error class: unknown class>) -> T): List<T?>

Apply extract to each chunk, returning results in INPUT ORDER. A null slot at index i means extract(chunks[i]) threw and was caught (see contract above).

Return

a list of size chunks.size; result[i] is the extraction of chunks[i] or null on failure

Parameters

chunks

the chunks to extract, in order

extract

the stateless per-chunk extraction function