| 1 |
.. _workers: |
| 2 |
|
| 3 |
Workers |
| 4 |
======= |
| 5 |
|
| 6 |
Hypercorn supports asyncio, uvloop, or trio worker classes thereby |
| 7 |
allowing ASGI applications writen with these in mind to be used. |
| 8 |
|
| 9 |
Asyncio |
| 10 |
------- |
| 11 |
|
| 12 |
Asyncio is the default event loop implementation that is part of the |
| 13 |
standard library. It is relatively well supported by third party |
| 14 |
libraries. |
| 15 |
|
| 16 |
Uvloop |
| 17 |
------ |
| 18 |
|
| 19 |
Uvloop is a different event loop policy for asyncio. It is used as it |
| 20 |
is quicker than the asyncio default, however it does not work on |
| 21 |
Windows. |
| 22 |
|
| 23 |
Trio |
| 24 |
---- |
| 25 |
|
| 26 |
Trio is a third party event loop implementation that is not compatible |
| 27 |
with asyncio. It is less supported, however the API is much nicer to |
| 28 |
use and it is harder to make mistakes. |