Kactoos

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

SyncBiFunc

class SyncBiFunc<in X : Any, in Y : Any, out Z : Any> : BiFunc<X, Y, Z>

BiFunc that is thread-safe.

Objects of this class are thread safe.

Parameters

X - Type of first input

Y - Type of second input

Z - Type of output

Since 0.4

Constructors

Name Summary
<init> SyncBiFunc(func: KBiFunc<X, Y, Z>)
SyncBiFunc(func: BiFunc<X, Y, Z>)
SyncBiFunc(func: BiFunc<X, Y, Z>, lock: Any)SyncBiFunc(func: KBiFunc<X, Y, Z>, lock: Any)
BiFunc that is thread-safe.

Functions

Name Summary
apply fun apply(first: X, second: Y): Z
Apply it.