Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
magicalhippo
on Aug 29, 2020
|
parent
|
context
|
favorite
| on:
Don't trust default timeouts
Yeah I just wanted to highlight it, as I've see far too much code passing INFINITE to WaitForSingleObject or similar.
And yeah, not having another way of cancelling is not nice, but sadly not entirely uncommon.
asdfasgasdgasdg
on Aug 29, 2020
[–]
Right I think the suggestion in that case would be to upgrade to an API that does support cancellation wherever possible. E.g. wait for multiple objects with the original argument and an additional cancel event.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
And yeah, not having another way of cancelling is not nice, but sadly not entirely uncommon.