mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
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.
This commit is contained in:
1 parent
98721c75b0
commit
96db8838be
1 file changed
+2
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user