synchronized

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

Synchronizes an action block on the MutableListIterator

Return

The result of the action block

Parameters

action

The action block to execute concurrently