Kactoos

kactoos-jvm / nnl.rocks.kactoos.scalar / SyncScalar

SyncScalar

class SyncScalar<T : Any> : Scalar<T>

Scalar that is thread-safe.

Parameters

T - Type of result

origin - The KScalar to cache

mutex - Sync lock

Since 0.3

Constructors

Name Summary
<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.

Functions

Name Summary
invoke fun invoke(): T
Get value of this Scalar