HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by goldsteinq | Hacker News Reader
Parent
Full thread
goldsteinq
·
Go’s “red” is “function accepts cancellation context”.
View on HN
sapiogram
·
Go's "red" is also "function may return an error"
goldsteinq
·
Sure, but it’s a different effect. Go’s asynchronous “red” is either “accepts a cancellation context” or “accepts a output channel” (since goroutines can’t return values normally).
Reply on news.ycombinator.com