summaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 127e2b8..9c6f3a1 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -513,12 +513,12 @@ handle async and sync code in an asyncio event loop. This has the
following implications:
- Template rendering requires an event loop to be available to the
- current thread. :func:`asyncio.get_event_loop` must return an event
- loop.
+ current thread. :func:`asyncio.get_running_loop` must return an
+ event loop.
- The compiled code uses ``await`` for functions and attributes, and
uses ``async for`` loops. In order to support using both async and
sync functions in this context, a small wrapper is placed around
- all calls and access, which add overhead compared to purely async
+ all calls and access, which adds overhead compared to purely async
code.
- Sync methods and filters become wrappers around their corresponding
async implementations where needed. For example, ``render`` invokes