forUpdate

open override fun forUpdate(option: ForUpdateOption): SizedIterable<T>

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