Kactoos

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

TimedFunc

class TimedFunc<X : Any, Y : Any> : Func<X, Y>

Function that gets interrupted after a certain time has passed.

Parameters

X - Type of input

Y - Type of output

func - Async function

time - Milliseconds

Since 0.4

Constructors

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.

Functions

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