Skip to content

Instance Property

eventLoop

The EventLoop used for asynchronous operations on a given database.
var eventLoop: any EventLoop { get }

Discussion

If there is no specific EventLoop which handles the database (such as because it is a connection pool which assigns loops to connections at point of use, or because the underlying implementation is based on Swift Concurrency or some other asynchronous execution technology), a single consistent EventLoop must be chosen for the database and returned for this property nonetheless.

See Also

Properties