-
Notifications
You must be signed in to change notification settings - Fork 320
Closed
Labels
Description
It'd be nice if concurrent readers worked the same way concurrent writers do.
i.e right now if I wanted to spawn a pool of goroutines to read messages from a WebSocket and respond to them, I'd need to spawn an extra goroutine to read the messages and then pipe them to the workers via a channel. It'd be simpler if the library just automatically blocked additional Reader calls until previous readers were closed.