Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Stackless issue #190: Do not close running (async) generators or coroutines #195

Merged
merged 2 commits into from
Dec 30, 2018

Conversation

akruis
Copy link

@akruis akruis commented Dec 29, 2018

Silently ignore attempts to close a running generator, coroutine or asynchronous
generator. This avoids spurious error messages, if such an object is deallocated
as part of a paused, restorable tasklet.

…outines,

if they are running and deallocated as part of a paused, restorable
tasklet. This commit does not handle custom finalizers of asynchronous
generators.
… coroutines

Silently ignore attempts to close a running generator, coroutine or asynchronous
generator. This avoids spurious error messages, if such an object is deallocated
as part of a paused, restorable tasklet.

This commit reverts the previous one.
@akruis akruis changed the title WIP: Stackless issue #190: Do not finalize (async) generators or coroutines, Stackless issue #190: Do not finalize (async) generators or coroutines, Dec 30, 2018
@akruis akruis changed the title Stackless issue #190: Do not finalize (async) generators or coroutines, Stackless issue #190: Do not close running (async) generators or coroutines Dec 30, 2018
@akruis akruis merged commit 905d0ef into stackless-dev:master-slp Dec 30, 2018
@akruis akruis deleted the slp-issue-190 branch December 30, 2018 20:39
akruis pushed a commit that referenced this pull request Jan 19, 2019
…utines (#195)

Silently ignore attempts to close a running generator, coroutine or asynchronous
generator. This avoids spurious error messages, if such an object is deallocated
as part of a paused, restorable tasklet.
(cherry picked from commit 905d0ef)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant