2 ms·
> Async/await + the ubiquitous Promise There's a legitimate concern about async-awaits — they don't have an inbuilt cancellation mechanism. May not be a big th
by azangru 6y ago
> Async/await + the ubiquitous Promise
There's a legitimate concern about async-awaits — they don't have an inbuilt cancellation mechanism. May not be a big thing for the server; but definitely a big thing for the client.
See, for example: https://twitter.com/getify/status/1171820070538022914 https://twitter.com/getify/status/1171820070538022914
- hombre_fatal 6y agoFree cancelation has been a pipedream since day one of computer science. We don't want it so badly that we want to pass around poison channels or cancelation tokens. People don't even bother threading cancelation contexts in Go because it's annoying and you still have to write disposal logic for anything worth canceling (which usually isn't possible anyways -- e.g. can't undo that database query that's in flight). There are cute things you can do with generators in the UI where cancelation cascades make a lot of sense, but notice how nobody actually cares enough to use redux-saga nor this guy's library.
- adev_ 6y ago> There's a legitimate concern about async-awaits — they don't have an inbuilt cancellation mechanism. May not be a big thing for the server; They are definitively a big thing for the server. The lack of cancellation mechanism and pre-emption + single threaded nature are the main reasons why the P95 latency of Nodejs App tend to get horrible under load.