synchronized

fun <T> synchronized(action: MutableList<E>.() -> T): T

Synchronizes an action block on the MutableList

Return

The result of the action block

Parameters

action

The action block to execute concurrently