kactoos-jvm / nnl.rocks.kactoos.iterator / SyncIterator / <init>
SyncIterator(iterator:
Iterator
<
T
>)
SyncIterator(iterator:
Iterator
<
T
>, readLock:
Any
, writeLock:
Any
)
Synchronized Iterator.
T
- The type of the iterator.
iterator
- The iterator to synchronize access to.
readLock
- The lock to use for synchronization on reads.
writeLock
- The lock to use for synchronization on writes.
Since 0.3