Skip to content

Commit ca55b0e

Browse files
glbrnttLukasa
andauthored
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 <[email protected]>
1 parent 16f19c0 commit ca55b0e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Sources/NIOCore/FileHandle.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ extension NIOFileHandle {
373373
use NIOFileSystem as a replacement API.
374374
"""
375375
)
376-
@available(*, noasync, message: "This method may block the calling thread")
377376
public convenience init(
378377
path: String,
379378
mode: Mode = .read,
@@ -415,7 +414,6 @@ extension NIOFileHandle {
415414
use NIOFileSystem as a replacement API.
416415
"""
417416
)
418-
@available(*, noasync, message: "This method may block the calling thread")
419417
public convenience init(path: String) throws {
420418
try self.init(_deprecatedPath: path)
421419
}

0 commit comments

Comments
 (0)