Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sprt
on Jan 19, 2021
|
parent
|
context
|
favorite
| on:
Non-Blocking Parallelism for Services in Go
Agree, in fact this pattern is found almost verbatim in Go's documentation:
https://pkg.go.dev/golang.org/x/sync/semaphore#example-packa...
burnthrow
on Jan 20, 2021
[–]
Go's Memory Model documentation specifically recommends modeling a counting semaphore with a buffered channel.
https://golang.org/ref/mem#tmp_7
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: