Skip to content

Commit

Permalink
Merge pull request #177 from timkpaine/tkp/hf
Browse files Browse the repository at this point in the history
hotfix for embedded event loops
  • Loading branch information
timkpaine authored May 10, 2023
2 parents 1eb941e + 7aec62c commit 30f5aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tributary/streaming/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def run(self, blocking=True, newloop=False, start=True):
if loop.is_running():

async def wait(task):
await task
return await task

return asyncio.run_coroutine_threadsafe(wait(task), loop)
# block until done
Expand Down

0 comments on commit 30f5aef

Please sign in to comment.