There was an error while loading. Please reload this page.
1 parent 53cb7bc commit 1677ad8Copy full SHA for 1677ad8
1 file changed
README.md
@@ -624,14 +624,18 @@ class MyAsyncTestCase(AsyncTestCase):
624
To run coroutines in a custom event loop, override static `run_override()` method.
625
626
```py
627
+import collections.abc
628
+import concurrent.futures
629
+
630
import sublime_aio
631
632
from unittesting import AsyncTestCase
633
634
635
class MyAsyncTestCase(AsyncTestCase):
636
- def run_coroutine(coro: abc.meta.Coroutine) -> cuncurrent.futures.Future:
- return sublime_aio.run_coroutine(coro)
637
+ def run_coroutine(coro: collections.abc.Coroutine) -> cuncurrent.futures.Future:
638
+ return sublime_aio.run_coroutine(coro)
639
```
640
641
Note, asyncio event loops must not block Sublime Text's main thread.
0 commit comments