Hacker News new | ask | show | jobs
by yencabulator 1465 days ago
A json.Decoder holds on to a single io.Reader, using it concurrently to decode multiple things is just plain old absurd. How would that even work?

https://pkg.go.dev/encoding/json#NewDecoder

1 comments

> How would that even work?

The same way it works to do so sequentially?