We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 957aa99 commit 060828bCopy full SHA for 060828b
examples/aiohttp_fetch.py
@@ -73,21 +73,21 @@ async def on_btnFetch_clicked(self):
73
async def main():
74
def close_future(future, loop):
75
loop.call_later(10, future.cancel)
76
- future.cancel("Close Application")
+ future.cancel()
77
78
loop = asyncio.get_event_loop()
79
future = asyncio.Future()
80
81
app = QApplication.instance()
82
- if hasattr(app, 'aboutToQuit'):
83
- getattr(app, 'aboutToQuit')\
84
- .connect(functools.partial(close_future, future, loop))
+ if hasattr(app, "aboutToQuit"):
+ getattr(app, "aboutToQuit").connect(
+ functools.partial(close_future, future, loop)
85
+ )
86
87
mainWindow = MainWindow()
88
mainWindow.show()
89
90
await future
-
91
return True
92
93
0 commit comments