3 ms·
I am a JS programmer and I have mixed feelings about this. I am not entirely sold on the stuff that comes after async/await. In particular, I am curious to know
by jrvidal 10y ago
I am a JS programmer and I have mixed feelings about this. I am not entirely sold on the stuff that comes after async/await. In particular, I am curious to know what folks here think about cancelable promises [1] and the try...else block that might be introduced. Or about async iterators [2], where you can `yield await` stuff.
[1] https://github.com/tc39/proposal-cancelable-promises https://github.com/tc39/proposal-cancelable-promises
[2] https://github.com/tc39/proposal-async-iteration https://github.com/tc39/proposal-async-iteration
- k__ 10y agoIs this about the cancelation tokens they also want to force on observables?
- jrvidal 10y agoWell, I was asking in general about all those new features that are in consideration: cancelation tokens, try...else, even the await.cancelToken meta-property [1]. It feels like a lot of baked-in syntactic support for a very specific pattern =/ [1] https://github.com/tc39/proposal-cancelable-promises/blob/master/Cancel%20Tokens.md https://github.com/tc39/proposal-cancelable-promises/blob/ma...