Instance Methodswift-nio 2.72.0NIOCore
fail(_:)
Deliver an error to the associated EventLoopFuture<Value>
object.
func fail(_ error: Error)
Parameters
- error
The error from the operation.
Other members in extension
Instance members
let futureResult: EventLoopFuture<Value>
The
EventLoopFuture
which is used by theEventLoopPromise
. You can use it to add callbacks which are notified once theEventLoopPromise
is completed.func completeWith(EventLoopFuture<Value>
) Complete the promise with the passed in
EventLoopFuture<Value>
.func completeWith(Result<Value, Error>
) Complete the promise with the passed in
Result<Value, Error>
.func completeWithTask(@escaping () async throws -> Value
) -> Task<Void, Never> Complete a future with the result (or error) of the
async
functionbody
.func succeed(Value
) Deliver a successful result to the associated
EventLoopFuture<Value>
object.