pep492: Clarify that only native coroutines can emit ResourceWarning on GC
This commit is contained in:
parent
747dce3504
commit
39b84d15f5
|
@ -156,8 +156,9 @@ Key properties of *coroutines*:
|
|||
and are replaced with a ``RuntimeError``. For regular generators
|
||||
such behavior requires a future import (see PEP 479).
|
||||
|
||||
* When a *coroutine* is garbage collected, a ``RuntimeWarning`` is
|
||||
raised if it was never awaited on (see also `Debugging Features`_).
|
||||
* When a *native coroutine* is garbage collected, a ``RuntimeWarning``
|
||||
is raised if it was never awaited on (see also
|
||||
`Debugging Features`_).
|
||||
|
||||
* See also `Coroutine objects`_ section.
|
||||
|
||||
|
|
Loading…
Reference in New Issue