         }
 	}
 
-    public func write(data: Data, flush: Bool = true, deadline: Deadline = never) throws {
+    public func write(data: Data, flush: Bool = true, deadline: Double = .never) throws {
         try assertNotClosed()
 
         let bytesProcessed = data.withUnsafeBufferPointer {
-            filewrite(file, $0.baseAddress, $0.count, deadline)
+            filewrite(file, $0.baseAddress, $0.count, deadline.int64milliseconds)
         }
 
         try FileError.assertNoSendErrorWithData(data, bytesProcessed: bytesProcessed)

}

extension File {
    public func write(convertible: DataConvertible, flush: Bool = true, deadline: Deadline = never) throws {
        try write(convertible.data, flush: flush, deadline: deadline)
    }
}

        return data
    }

    public func flush(deadline: Double = .never) throws {
        try assertNotClosed()
        fileflush(file, deadline.int64milliseconds)
        try FileError.assertNoError()
    }

