Kactoos

kactoos-jvm / nnl.rocks.kactoos.iterable / SyncIterable

SyncIterable

class SyncIterable<out X : Any> : Iterable<X>

Synchronized iterable.

Objects of this class are thread-safe.

Parameters

X - Type of item.

origin - The iterable synchronize access to.

lock - The lock to synchronize with.

Since 0.4

See Also

StickyIterable

SolidIterable

Constructors

Name Summary
<init> SyncIterable(origin: Iterable<X>)
SyncIterable(vararg src: X)SyncIterable(origin: Iterable<X>, lock: Any)
Synchronized iterable.

Functions

Name Summary
iterator fun iterator(): Iterator<X>