docs/discussion/design_choices.rst
raw| 1 | .. _design_choices: |
| 2 | |
| 3 | Design Choices |
| 4 | ============== |
| 5 | |
| 6 | Coroutines or functions |
| 7 | ----------------------- |
| 8 | |
| 9 | It is quite easy to call sync and trigger async execution from a |
| 10 | coroutine and hard to trigger async execution from a function, see |
| 11 | :ref:`async_compatibility`. For this reason coroutines are preferred even in |
| 12 | cases where IO seems unlikely. |