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 316e4e5 commit f76a5bcCopy full SHA for f76a5bc
1 file changed
trio_asyncio/base.py
@@ -723,6 +723,11 @@ async def _main_loop_exit(self):
723
self._nursery = None
724
self._task = None
725
726
+ def is_running(self):
727
+ if self._stopped is None:
728
+ return False
729
+ return not self._stopped.is_set()
730
+
731
def run_forever(self):
732
"""asyncio's method to run the loop until it is stopped.
733
"""
0 commit comments