Closed ianberdin closed 7 years ago
Access tot hub.session already synchronous, because channels not buffered.
It's code totally synchronous... https://github.com/olahol/melody/blob/master/examples/gophers/main.go
It's locked because hub.sessions
can be accessed asynchronously by hub.len()
.
https://github.com/olahol/melody/blob/master/hub.go#L71-L76
What's the problem with https://github.com/olahol/melody/blob/master/examples/gophers/main.go ?
Understand, thank you
I'm talk about https://github.com/olahol/melody/blob/master/hub.go#L34-L36 and code below