Kactoos

kactoos-jvm / nnl.rocks.kactoos.func / TimedFunc / <init>

<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.

Parameters

X - Type of input

Y - Type of output

func - Async function

time - Milliseconds

Since 0.4