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.
run_sync
1 parent 9e6837e commit 0d02fc1Copy full SHA for 0d02fc1
piccolo/utils/sync.py
@@ -1,10 +1,12 @@
1
+from __future__ import annotations
2
import asyncio
3
from concurrent.futures import ThreadPoolExecutor
4
+import typing as t
5
6
-def run_sync(coroutine):
7
+def run_sync(coroutine: t.Coroutine):
8
"""
- Run the coroutine synchronously - trying to accomodate as many edge cases
9
+ Run the coroutine synchronously - trying to accommodate as many edge cases
10
as possible.
11
12
1. When called within a coroutine.
0 commit comments