core / pragma.jobs / BackgroundManager / fireAndForgetAll /

fireAndForgetAll #

abstract fun <T> fireAndForgetAll(collection: Collection<T>, block: suspend (T) -> Unit)

Runs the block of code in the background once for each element in the collection, passing in the element as a parameter to the block.

Parameters #

collection

The collection of elements to pass into the block to be executed.

block

Block of code to be executed in the background and receives the elements.