Kactoos

kactoos-jvm / nnl.rocks.kactoos.scalar / SyncScalar / <init>

<init>

SyncScalar(src: KScalar<T>) SyncScalar(src: Scalar<T>) SyncScalar(src: Scalar<T>, mutex: Any)SyncScalar(origin: KScalar<T>, mutex: Any)

Scalar that is thread-safe.

Parameters

T - Type of result

origin - The KScalar to cache

mutex - Sync lock

Since 0.3