always(_:)

Adds an observer callback to this EventLoopFuture that is called when the EventLoopFuture has any result.

EventLoopFuture.swift:1771
@preconcurrency func always(_ callback: @escaping (Result<Value, any Error>) -> Void) -> EventLoopFuture<Value>

Parameters

callback

the callback that is called when the EventLoopFuture is fulfilled.

Returns

the current EventLoopFuture