kactoos-jvm / nnl.rocks.kactoos.func / SyncFunc
class SyncFunc<X :
Any
, Y :
Any
> :
Func
<
X
,
Y
>
Func that is thread-safe.
Objects of this class are thread safe.
X
- Type of input
Y
- Type of output
Since 0.4
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. |
Name | Summary |
---|---|
apply | fun apply(input: X ): Y Apply it. |