Remove noasync from NIOFileHandle (#3001)

Motivation:

In #2598, `NIOFileHandle` was annotated with `noasync` in a few places.
This is, unfortunately, a breaking change.

Modifications:

- Remove the `noasync` annotations

Result:

Adopters aren't broken

---------

Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
George BarnettandCory Benfield authored and GitHub committed 2024-11-27 11:21:34 +00:00
1 parent 16f19c0c64
commit ca55b0e50f
1 file changed
-2
-2
View File
@@ -373,7 +373,6 @@ extension NIOFileHandle {
use NIOFileSystem as a replacement API.
"""
)
@available(*, noasync, message: "This method may block the calling thread")
public convenience init(
path: String,
mode: Mode = .read,
@@ -415,7 +414,6 @@ extension NIOFileHandle {
use NIOFileSystem as a replacement API.
"""
)
@available(*, noasync, message: "This method may block the calling thread")
public convenience init(path: String) throws {
try self.init(_deprecatedPath: path)
}