You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/developers/extensions.rst
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,10 @@ Here is basic example:
87
87
"""
88
88
await asyncio.sleep(.1)
89
89
90
+
.. note:: The server startup banner (displaying server info and access URLs) is printed before starting asynchronous tasks, so those tasks might still be running even after the banner appears.
91
+
92
+
.. WARNING: This note is also present in the "Starting asynchronous tasks from an ExtensionApp" section.
93
+
If you update it here, please update it there as well.
90
94
91
95
Making an extension discoverable
92
96
--------------------------------
@@ -386,6 +390,11 @@ Here is a basic (pseudo) code example:
386
390
asyncdefstop_extension(self):
387
391
self.my_background_task.cancel()
388
392
393
+
.. note:: The server startup banner (displaying server info and access URLs) is printed before starting asynchronous tasks, so those tasks might still be running even after the banner appears.
394
+
395
+
.. WARNING: This note is also present in the "Starting asynchronous tasks from an extension" section.
396
+
If you update it here, please update it there as well.
0 commit comments