Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions peps/pep-0818.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ is the following implementation of ``call_later()`` which uses the JavaScript
The event loop also creates custom futures ``WebFuture`` and ``WebTask``. These
are like normal futures and tasks except that they also implement the JavaScript
Promise methods ``then()``, ``catch()`` and ``finally_()``. This is so that code
can work consistently regardless of whether they have a ``Promise`` a
can work consistently regardless of whether they have a ``Promise``, a
``WebFuture`` or a ``WebTask``.

Adapting from a Python awaitable to a JavaScript awaitable
Expand Down Expand Up @@ -1374,7 +1374,7 @@ Adapting from a JavaScript awaitable to a Python awaitable

The key function here is ``jsawaitable_to_pyawaitable``. Most of the logic in
``jsawaitable_to_pyawaitable`` revolves around the fact that we need to take
care that when when the promise is resolved or rejected, we release both
care that when the promise is resolved or rejected, we release both
``future.set_result()`` and ``future.set_exception()``. When a ``Promise`` is
returned from a JavaScript function, we use the ``done_callback`` optional
argument to release the Python arguments to the JavaScript function after the
Expand Down
Loading