mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
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:
1 parent
16f19c0c64
commit
ca55b0e50f
1 file changed
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user