runTimeout

@safe nothrow
void
runTimeout
(
Args...
)
(
Duration duration
,
void delegate
()
@safe
timeout
,
Args args
)
if (
allSatisfy!(isSafe, Args)
)

Parameters

duration Duration

the duration for the timeout

timeout void delegate
()
@safe

delegate function to call

args Args

normal message handlers for the task the first message handler may be a failHandler to deal with TaskFailure from other tasks