Creating Event when in from_thread.run_sync() context #501
-
When using Reproduced in a gist here https://gist.github.com/tapetersen/e85a808f0bba7dd396fa68eafb41012d |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
This is not critical for us and can be worked around by creating
I don't know about |
Beta Was this translation helpful? Give feedback.
Ok, so I think I initially misunderstood the issue a bit. You could state your case for better asyncio detection on the sniffio issue tracker. I wonder if AnyIO should propagate the context in
run_sync()
, as that would potentially solve this for you.