diff options
| author | Adrian Herrmann <adrian.herrmann@qt.io> | 2024-03-11 19:38:03 +0100 |
|---|---|---|
| committer | Adrian Herrmann <adrian.herrmann@qt.io> | 2024-03-11 20:42:52 +0100 |
| commit | 463762e1e272ec79fadf9b8ae5a6fd25b7b8252e (patch) | |
| tree | c583063f318cf70210834bdd174e7e3344be0aec /build_scripts/config.py | |
| parent | 83c837969c8384d52b97318d310f9aa1705c6f0d (diff) | |
QtAsyncio: Reset loop policy after QtAsyncio.run()
When running QtAsyncio.run(), the global asyncio event loop policy is
set. Currently, the policy setting is kept to QtAsyncio's policy even
after QtAsyncio.run() returns, which can lead to unexpected behavior
(e.g., if executing asyncio.run() afterwards expecting the default event
loop to be used). Reset the event loop policy to the default one after
returning from QtAsyncio.run() to mitigate this.
Pick-to: 6.6
Task-number: PYSIDE-769
Change-Id: Ifd31c0924317ba09c53ded165c9a5d6f1e2dc808
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'build_scripts/config.py')
0 files changed, 0 insertions, 0 deletions
