Skip to content

Commit

Permalink
Remove noasync from NIOFileHandle (#3001)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
glbrntt and Lukasa authored Nov 27, 2024
1 parent 16f19c0 commit ca55b0e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sources/NIOCore/FileHandle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit ca55b0e

Please sign in to comment.