apple / swift-nio

Event-driven network application framework for high performance protocol servers & clients, non-blocking.
https://swiftpackageindex.com/apple/swift-nio/documentation
Apache License 2.0
7.98k stars 650 forks source link

No non-blocking file-open operation #185

Closed helje5 closed 6 years ago

helje5 commented 6 years ago

Expected behavior

The way to open files seems to be:

NIO.FileHandle.init(path:)

which is a blocking operation. That seems no good.

Actual behavior

A non-blocking way to open a file. Maybe this belongs into NonBlockingFileIO.

SwiftNIO version/commit hash

The HEAD when I pressed "Submit".

Lukasa commented 6 years ago

Yup, we should extend the NonBlockingFileIO struct to add support for this.

Lukasa commented 6 years ago

Resolved by #256.