Skip to content

Creating Event when in from_thread.run_sync() context #501

Answered by agronholm
tapetersen asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@agronholm
Comment options

@tapetersen
Comment options

@tapetersen
Comment options

@agronholm
Comment options

Answer selected by tapetersen
@tapetersen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #500 on November 16, 2022 09:21.