PyDocs

Nav

Python Runtime Services

agen.athrow

builtins

async method
  • agen.athrow(value)
  • agen.athrow(type[, value[, traceback]])
Returns an awaitable that, when run, raises an exception at the point where the underlying asynchronous generator function is currently suspended.
Changed in 3.12
  • 3.12: The second signature (type[, value[, traceback]]) is deprecated and may be removed in a future version of Python.
0 Examples
No examples for builtins/agen.athrow.
See Also
No see-alsos for builtins/agen.athrow
0 Notes
No notes for agen.athrow