From 96db8838be60fcbb993fa738e1120fb7f4b99c43 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Mon, 7 Sep 2020 10:48:15 +0100 Subject: [PATCH] Note that certain NIOFileHandle.init overloads are blocking (#1630) This was noted in review of swift-server/async-http-client#275, but I don't think that this was clearly stated in the documentation. --- Sources/NIO/FileHandle.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/NIO/FileHandle.swift b/Sources/NIO/FileHandle.swift index b5c5275a1..22b9c43f9 100644 --- a/Sources/NIO/FileHandle.swift +++ b/Sources/NIO/FileHandle.swift @@ -134,7 +134,7 @@ extension NIOFileHandle { } } - /// Open a new `NIOFileHandle`. + /// Open a new `NIOFileHandle`. This operation is blocking. /// /// - parameters: /// - path: The path of the file to open. The ownership of the file descriptor is transferred to this `NIOFileHandle` and so it will be closed once `close` is called. @@ -145,7 +145,7 @@ extension NIOFileHandle { self.init(descriptor: fd) } - /// Open a new `NIOFileHandle`. + /// Open a new `NIOFileHandle`. This operation is blocking. /// /// - parameters: /// - path: The path of the file to open. The ownership of the file descriptor is transferred to this `NIOFileHandle` and so it will be closed once `close` is called.