zlacker
[parent]
[thread]
2 comments
1. goldst+(OP)
[view]
[source]
2024-01-23 14:42:57
Go’s “red” is “function accepts cancellation context”.
replies(1):
>>sapiog+w7
◧
2. sapiog+w7
[view]
[source]
2024-01-23 15:13:42
>>goldst+(OP)
Go's "red" is also "function may return an error"
replies(1):
>>goldst+vr
◧◩
3. goldst+vr
[view]
[source]
[discussion]
2024-01-23 16:34:00
>>sapiog+w7
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).
[go to top]