4 ms·
Programming challenge in golang: Create a persistent tcp client that can connect to a server, read responses… and be disconnected via context.WithCancel().
by latchkey 6y ago
Programming challenge in golang: Create a persistent tcp client that can connect to a server, read responses… and be disconnected via context.WithCancel().
- Cojen 6y agoI'm not familiar enough with Go to understand why this is a challenge. What point are you trying to illustrate with the challenge? Is this easy or hard, and how does this compare to Loom and Structured Concurrency?
- latchkey 6y agoMany people in this thread are talking about structured concurrency in other languages. I brought up a fun one for golang that, as far as I can tell, is a 3 year old open issue [0] that I've recently bumped into. Maybe this is a fun challenge for you to become more familiar with golang? [0] https://github.com/golang/go/issues/20280 https://github.com/golang/go/issues/20280