Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zeeboo
on Nov 22, 2019
|
parent
|
context
|
favorite
| on:
Go’s Features of Last Resort
Using chan struct{} is more efficient, and guarantees there is nothing being put into the channel. That's why you see it used on the Context type's Done method, for example.
https://golang.org/pkg/context/#Context
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://golang.org/pkg/context/#Context