fixes docstring with correct return type (#1644)

This commit is contained in:
Andrius 2020-09-22 17:37:18 +01:00 committed by GitHub
parent b2f3de8ed5
commit 801b879b35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ public struct NonBlockingFileIO {
/// - mode: File access mode.
/// - flags: Additional POSIX flags.
/// - eventLoop: The `EventLoop` on which the returned `EventLoopFuture` will fire.
/// - returns: An `EventLoopFuture` containing the `NIOFileHandle` and the `FileRegion` comprising the whole file.
/// - returns: An `EventLoopFuture` containing the `NIOFileHandle`.
public func openFile(path: String, mode: NIOFileHandle.Mode, flags: NIOFileHandle.Flags = .default, eventLoop: EventLoop) -> EventLoopFuture<NIOFileHandle> {
return self.threadPool.runIfActive(eventLoop: eventLoop) {
return try NIOFileHandle(path: path, mode: mode, flags: flags)