Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vc8f6vVV
on Sept 11, 2023
|
parent
|
context
|
favorite
| on:
Why you might want async in your project
You wait on a shared channel so both read and sleep threads queue a message when ready (whichever comes first). Not sure about channels, but in other languages it would be a concurrent queue.
conradludgate
on Sept 12, 2023
[–]
This won't cancel the read, it'll just ignore the result
vc8f6vVV
on Sept 12, 2023
|
parent
[–]
Most languages I know allow killing a thread, or at least unblock a system call.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: