Skip to content

Instance Method

future(_:)

Creates a new, succeeded EventLoopFuture from the worker’s event loop.
func future<T>(_ value: T) -> EventLoopFuture<T>

Parameters

value

The value that the future will wrap.

Return Value

The succeeded future.

Discussion

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

See Also

EventLoop and EventLoopGroup