Skip to content

Conversation

mnauw
Copy link

@mnauw mnauw commented Aug 22, 2020

... such as when a python asyncio callback is scheduled (this is a variation on other pull requests).

Also, optionally allow GLib's (override) handling of SIGINT (rather than viewing as interference), so one escape the loop that way as well.

mnauw added 2 commits August 4, 2020 16:21
This combines variations of fixes that have already been proposed.

Fixes #1
Fixes jhenstridge#3
... as this also appromixates asyncio KeyboardInterrupt SIGINT behavior.
Otherwise, one tends to get stuck in mainloop without convenient
escape hatch.
@pocek
Copy link

pocek commented Sep 22, 2020

Just a test report from a user (not an expert): this works well in PyQt5¹ + aiohttp app. At first I thought I will need #7 too, but it has turned out not to be the case.

¹) Qt, at least on Linux, typically uses GLib event loop under the good.

@mnauw
Copy link
Author

mnauw commented Mar 18, 2021

The PR #9 as referenced above indeed provides a better alternative to this PR. It also has the added advantage of avoiding mess with override signal handler. So, closing this PR to defer to the other one. Note that a minor fix wrt subprocess handling is still needed, as e.g. in ReadWriteDenied/asyncio-glib@0780e6e or also in alternative PR #10.

@mnauw mnauw closed this Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants