Replies: 1 comment
-
Hysterical raisins. The explicit create/try/read+write/finally/close loop has been around forever and still needs to be supported, esp. since sometimes it's a PITA to spawn another thread just for the |
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
Uh oh!
There was an error while loading. Please reload this page.
-
It's a lot of questions and quirks about how to work with streams properly. One of the most popular mistakes is forgetting to use
async with
and therefore not closing the stream after work is done. I myself did this exact bug multiple times and had to debug stale applications 😬But why does stream allow reads and writes to itself until it's explicitly opened? E.g. boolean flag that enables in aenter, or otherwise an exception in get and send.
Beta Was this translation helpful? Give feedback.
All reactions