File: design_choices.rst

package info (click to toggle)
quart 0.20.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,888 kB
  • sloc: python: 8,644; makefile: 42; sh: 17; sql: 6
file content (12 lines) | stat: -rw-r--r-- 341 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
.. _design_choices:

Design Choices
==============

Coroutines or functions
-----------------------

It is quite easy to call sync and trigger async execution from a
coroutine and hard to trigger async execution from a function, see
:ref:`async_compatibility`. For this reason coroutines are preferred even in
cases where IO seems unlikely.