EveDtlsTimer.scheduleTimeout

void scheduleTimeout(Duration delay, void delegate() onTimeout) @trusted

Schedules a timeout callback on the EVE event loop.

If a timeout is already scheduled, it is cancelled first. The callback is stored and invoked from a @safe nothrow EVE timer handler.

Parameters

delayDuration until the callback should be invoked.
onTimeoutCallback to invoke when the timeout expires.