Kactoos

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

SolidFunc

class SolidFunc<in X : Any, out Y : Any> : Func<X, Y>

Func that is thread-safe and sticky.

Objects of this class are thread safe.

Parameters

X - Type of input

Y - Type of output

Since 0.4

Constructors

Name Summary
<init> SolidFunc(fnc: Func<X, Y>, max: Int)
SolidFunc(fnc: Func<X, Y>)SolidFunc(func: SyncFunc<X, Y>)
Func that is thread-safe and sticky.

Functions

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