deadlineNanoTime

open fun deadlineNanoTime(): Long

Returns the nano time when the deadline will be reached.

Throws

if no deadline is set.

open fun deadlineNanoTime(deadlineNanoTime: Long): Timeout

Sets the nano time when the deadline will be reached. All operations must complete before this time. Use a deadline to set a maximum bound on the time spent on a sequence of operations.