future(_:)

Creates a new, succeeded EventLoopFuture from the worker’s event loop.

EventLoop+Future.swift:19
func future<T>(_ value: T) -> EventLoopFuture<T>

Parameters

value

The value that the future will wrap.

Returns

The succeeded future.

let a: EventLoopFuture = req.future(“hello”)