forUpdate

open fun forUpdate(option: ForUpdateOption = ForUpdateOption.ForUpdate): SizedIterable<T>

Returns a new SizedIterable with a locking read for the elements according to the rules specified by option.