func always(@escaping (Result<Value, any Error>) -> Void) -> EventLoopFuture<Value>.IsolatedAdds an observer callback to this EventLoopFuture that is called when the EventLoopFuture has any result.
func flatMap<NewValue>(@escaping (Value) -> EventLoopFuture<NewValue>) -> EventLoopFuture<NewValue>.IsolatedWhen the current EventLoopFuture<Value> is fulfilled, run the provided callback, which will provide a new EventLoopFuture.
func flatMapError(@escaping (any Error) -> EventLoopFuture<Value>) -> EventLoopFuture<Value>.IsolatedWhen the current EventLoopFuture<Value> is in an error state, run the provided callback, which may recover from the error by returning an EventLoopFuture<NewValue>. The callback is intended to potentially recover from the error by returning a new EventLoopFuture that will eventually contain the recovered result.
func flatMapError(@escaping (any Error) -> EventLoopFuture<Value>.Isolated) -> EventLoopFuture<Value>.IsolatedWhen the current EventLoopFuture<Value>.Isolated is in an error state, run the provided callback, which may recover from the error by returning an EventLoopFuture<NewValue>.Isolated. The callback is intended to potentially recover from the error by returning a new EventLoopFuture.Isolated that will eventually contain the recovered result.
func flatMapErrorThrowing(@escaping (any Error) throws -> Value) -> EventLoopFuture<Value>.IsolatedWhen the current EventLoopFuture<Value> is in an error state, run the provided callback, which may recover from the error and returns a new value of type Value. The provided callback may optionally throw, in which case the EventLoopFuture will be in a failed state with the new thrown error.
func flatMapResult<NewValue, SomeError>(@escaping (Value) -> Result<NewValue, SomeError>) -> EventLoopFuture<NewValue>.IsolatedWhen the current EventLoopFuture<Value> is fulfilled, run the provided callback, which performs a synchronous computation and returns either a new value (of type NewValue) or an error depending on the Result returned by the closure.
func flatMapThrowing<NewValue>(@escaping (Value) throws -> NewValue) -> EventLoopFuture<NewValue>.IsolatedWhen the current EventLoopFuture<Value> is fulfilled, run the provided callback, which performs a synchronous computation and returns a new value of type NewValue. The provided callback may optionally throw.
func map<NewValue>(@escaping (Value) -> NewValue) -> EventLoopFuture<NewValue>.IsolatedWhen the current EventLoopFuture<Value> is fulfilled, run the provided callback, which performs a synchronous computation and returns a new value of type NewValue.
func nonisolated() -> EventLoopFuture<Value>Returns the wrapped event loop future.
func unwrap<NewValue>(orElse: @escaping () -> NewValue) -> EventLoopFuture<NewValue>.IsolatedUnwrap an EventLoopFuture where its type parameter is an Optional.
func unwrap<NewValue>(orReplace: NewValue) -> EventLoopFuture<NewValue>.IsolatedUnwrap an EventLoopFuture where its type parameter is an Optional.
func whenComplete(@escaping (Result<Value, any Error>) -> Void)Adds an observer callback to this EventLoopFuture that is called when the EventLoopFuture has any result.
func whenFailure(@escaping (any Error) -> Void)Adds an observer callback to this EventLoopFuture that is called when the EventLoopFuture has a failure result.
func whenSuccess(@escaping (Value) -> Void)Adds an observer callback to this EventLoopFuture that is called when the EventLoopFuture has a success result.