Kactoos

kactoos-jvm / nnl.rocks.kactoos.iterator / SyncIterator / <init>

<init>

SyncIterator(iterator: Iterator<T>)SyncIterator(iterator: Iterator<T>, readLock: Any, writeLock: Any)

Synchronized Iterator.

Parameters

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