From ca55b0e50febfc597537a820048ccc5cdbd4f5bf Mon Sep 17 00:00:00 2001 From: George Barnett Date: Wed, 27 Nov 2024 11:21:34 +0000 Subject: [PATCH] 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 --- Sources/NIOCore/FileHandle.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/Sources/NIOCore/FileHandle.swift b/Sources/NIOCore/FileHandle.swift index 62fd100e2..6c7dc0812 100644 --- a/Sources/NIOCore/FileHandle.swift +++ b/Sources/NIOCore/FileHandle.swift @@ -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) }