File: workers.rst

package info (click to toggle)
hypercorn 0.17.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 908 kB
  • sloc: python: 7,839; makefile: 24; sh: 6
file content (28 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.. _workers:

Workers
=======

Hypercorn supports asyncio, uvloop, or trio worker classes thereby
allowing ASGI applications writen with these in mind to be used.

Asyncio
-------

Asyncio is the default event loop implementation that is part of the
standard library. It is relatively well supported by third party
libraries.

Uvloop
------

Uvloop is a different event loop policy for asyncio. It is used as it
is quicker than the asyncio default, however it does not work on
Windows.

Trio
----

Trio is a third party event loop implementation that is not compatible
with asyncio. It is less supported, however the API is much nicer to
use and it is harder to make mistakes.