Kactoos

kactoos-jvm / nnl.rocks.kactoos.func / SyncFunc / <init>

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

Objects of this class are thread safe.

Parameters

X - Type of input

Y - Type of output

Since 0.4