Skip to content

Instance Property

eventLoop

The EventLoop which is handling this Request. The route handler and any relevant middleware are invoked in this event loop.
let eventLoop: any EventLoop

Discussion

Warning

A futures-based route handler MUST return an EventLoopFuture bound to this event loop. If this is difficult or awkward to guarantee, use EventLoopFuture.hop(to:) to jump to this event loop.