Skip to content

Commit

Permalink
[3.8] [3.11] Add single value agen.athrow(value) signature to the 3…
Browse files Browse the repository at this point in the history
….11 docs gh-105269  (GH-105468) (#105478)

(cherry picked from commit acf3916)

Co-authored-by: Federico Caselli <CaselIT@users.noreply.github.com>
  • Loading branch information
miss-islington and CaselIT committed Jul 5, 2023
1 parent 40ea37d commit db42de4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/reference/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,8 @@ which are used to control the execution of a generator function.
because there is no yield expression that could receive the value.


.. coroutinemethod:: agen.athrow(type[, value[, traceback]])
.. coroutinemethod:: agen.athrow(value)
agen.athrow(type[, value[, traceback]])

Returns an awaitable that raises an exception of type ``type`` at the point
where the asynchronous generator was paused, and returns the next value
Expand Down

0 comments on commit db42de4

Please sign in to comment.