public struct NIODeadline : Equatable, Hashable
extension NIODeadline: Comparable
extension NIODeadline: CustomStringConvertible

Represents a point in time.

Stores the time in nanoseconds as returned by

NIODeadline allow chaining multiple tasks with the same deadline without needing to compute new timeouts for each step

func doSomething(deadline: NIODeadline) -> EventLoopFuture<Void> {
    return step1(deadline: deadline).flatMap {
        step2(deadline: deadline)
doSomething(deadline: .now() + .seconds(5))


NIODeadline should not be used to represent a time interval