Skip to content

Commit 96db883

Browse files
authored
Note that certain NIOFileHandle.init overloads are blocking (apple#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.
1 parent 98721c7 commit 96db883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/NIO/FileHandle.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ extension NIOFileHandle {
134134
}
135135
}
136136

137-
/// Open a new `NIOFileHandle`.
137+
/// Open a new `NIOFileHandle`. This operation is blocking.
138138
///
139139
/// - parameters:
140140
/// - 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 {
145145
self.init(descriptor: fd)
146146
}
147147

148-
/// Open a new `NIOFileHandle`.
148+
/// Open a new `NIOFileHandle`. This operation is blocking.
149149
///
150150
/// - parameters:
151151
/// - 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.

0 commit comments

Comments
 (0)