mirror of https://github.com/vapor/docs.git
668 B
668 B
Worker
Workers are any type that keep track of the current EventLoop.
Worker is a simple protocol and can be conformed to if the context can return (by means of a computed property) or contain an EventLoop.
There are three primary Workers that you can use to access the EventLoop and it's queue or context.