kactoos-jvm / nnl.rocks.kactoos.scalar / SyncScalar
class SyncScalar<T :
Any
> :
Scalar
<
T
>
Scalar that is thread-safe.
T
- Type of result
origin
- The KScalar to cache
mutex
- Sync lock
Since 0.3
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. |
Name | Summary |
---|---|
invoke | fun invoke(): T Get value of this Scalar |