Skip to content

okio / okio / Timeout / deadlineNanoTime

deadlineNanoTime

(jvm) open fun deadlineNanoTime():Long

Returns the nano time when the deadline will be reached.

Exceptions

IllegalStateException - if no deadline is set.(jvm) 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.