Skip to content

Allow concurrent readers #145

@nhooyr

Description

@nhooyr

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions