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 76116f5 commit 482fd84Copy full SHA for 482fd84
2 files changed
trio_asyncio/adapter.py
@@ -14,6 +14,7 @@
14
15
def trio2aio(proc):
16
if inspect.isasyncgenfunction(proc):
17
+
18
@wraps(proc)
19
def call(*args, **kwargs):
20
proc_ = proc
@@ -22,6 +23,7 @@ def call(*args, **kwargs):
22
23
return trio_asyncio.wrap_generator(proc_, *args)
24
25
else:
26
27
28
async def call(*args, **kwargs):
29
trio_asyncio/util.py
@@ -49,6 +49,7 @@ def abort_cb(raise_cancel_arg):
49
50
STOP = object()
51
52
53
async def run_generator(loop, async_generator):
54
task = trio.hazmat.current_task()
55
raise_cancel = None
0 commit comments