Replies: 1 comment
-
That's exactly what contextvars are made for. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, first of all, I am a python rookie. I am very interested in this project.
One of my doubts at present is how to distinguish different connections in a global ContextVar like websocket.
Because I read the code inside and did not understand it, I want to ask.
I am now very, very much looking forward to learning the technical details here.
The following is my hypothetical ASGI code of unimplemented details.
Assuming that the first connection is just blocked in the receive,
the second connection will replace the first connection when it enters.
How to distinguish the two connections is my doubt.
Beta Was this translation helpful? Give feedback.
All reactions