mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
Updated the code comment to explain the correct type of Future result.
Motivation: This is done because when using Xcode and option + Click on a function you get a help overview inline to see more information and the messaging was incorrect. This helps developers in the future who want to rely on docs via Xcode. Modification: Correct the docs Result: More correct docs.
This commit is contained in:
1 parent
c566b64455
commit
bc6618e300
1 file changed
+1
-1
@@ -210,7 +210,7 @@ extension EventLoop {
|
||||
///
|
||||
/// - parameters:
|
||||
/// - result: the value that is used by the `EventLoopFuture`.
|
||||
/// - returns: a failed `EventLoopFuture`.
|
||||
/// - returns: a succeeded `EventLoopFuture`.
|
||||
public func newSucceededFuture<T>(result: T) -> EventLoopFuture<T> {
|
||||
return EventLoopFuture<T>(eventLoop: self, result: result, file: "n/a", line: 0)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user