Required Instance Methodswift-nio 2.81.0NIOCore

makeSucceededVoidFuture

Return a succeeded Void future.

EventLoop.swift:323
func makeSucceededVoidFuture() -> EventLoopFuture<Void>

Semantically, this function is equivalent to calling makeSucceededFuture(()). Contrary to makeSucceededFuture, makeSucceededVoidFuture is a customization point for EventLoops which allows EventLoops to cache a pre-succeeded Void future to prevent superfluous allocations.