Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
domenicd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
271.
▲
by
domenicd
14y ago
Yes, very true! In fact, many of the the Windows Runtime APIs are async. They get projected identically into C# with `Task` as they do into JavaScript with WinJS promises. On cancellation, this is actually a feature of several promise libra
272.
▲
by
domenicd
14y ago
I have not dived into async, so it may have the ability to handle the following and I just don't know it. But here are the things I think it's missing: - Interception of not only errors explicitly passed up to the callback, but also throw
273.
▲
by
domenicd
14y ago
No, jQuery's `pipe` (or their `then` in >= 1.8) still does not do error handling. I updated the article a couple days ago to address this directly: --- This breaks down into four scenarios, depending on the state of the promise. Here we
274.
▲
by
domenicd
14y ago
As wycats says, this indeed supported by good JS promises. I talked a bit more about the situation in my promise-tests documentation: https://github.com/domenic/promise-tests#returning-a-promise... Unfortunately Promises/A omits this, so