kactoos-jvm / nnl.rocks.kactoos.func / TimedFunc
class TimedFunc<X :
Any
, Y :
Any
> :
Func
<
X
,
Y
>
Function that gets interrupted after a certain time has passed.
X
- Type of input
Y
- Type of output
func
- Async function
time
- Milliseconds
Since 0.4
Name | Summary |
---|---|
<init> | TimedFunc(function: Func < X , Y >, milliseconds: Long ) TimedFunc(time: Long , func: Func < X , Future < Y >>) Function that gets interrupted after a certain time has passed. |
Name | Summary |
---|---|
apply | fun apply(input: X ): Y Apply it. |