Kactoos

kactoos-jvm / nnl.rocks.kactoos.func / SyncFunc

SyncFunc

class SyncFunc<X : Any, Y : Any> : Func<X, Y>

Func that is thread-safe.

Objects of this class are thread safe.

Parameters

X - Type of input

Y - Type of output

Since 0.4

Constructors

Name Summary
<init> SyncFunc(func: KFunc<X, Y>)
SyncFunc(func: Func<X, Y>)
SyncFunc(func: Func<X, Y>, lock: Any)
SyncFunc(proc: Proc<X>, result: Y)SyncFunc(func: KFunc<X, Y>, lock: Any)
Func that is thread-safe.

Functions

Name Summary
apply fun apply(input: X): Y
Apply it.