expiresAfter

A factory method that sets maxTime to the specified duration from now.

Return

TimeBounds with minTime=0 and maxTime=now+timeout

Parameters

timeout

Timeout duration from now


fun expiresAfter(timeoutSeconds: Long): TimeBounds

A factory method that sets maxTime to the specified seconds from now.

Return

TimeBounds with minTime=0 and maxTime=now+timeoutSeconds

Parameters

timeoutSeconds

Timeout in seconds