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
|
and are replaced with a ``RuntimeError``. For regular generators
|
||||||
such behavior requires a future import (see PEP 479).
|
such behavior requires a future import (see PEP 479).
|
||||||
|
|
||||||
* When a *coroutine* is garbage collected, a ``RuntimeWarning`` is
|
* When a *native coroutine* is garbage collected, a ``RuntimeWarning``
|
||||||
raised if it was never awaited on (see also `Debugging Features`_).
|
is raised if it was never awaited on (see also
|
||||||
|
`Debugging Features`_).
|
||||||
|
|
||||||
* See also `Coroutine objects`_ section.
|
* See also `Coroutine objects`_ section.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue