Bob Myers

Results 32 comments of Bob Myers

Hmm, it seems to me that the expression "resolved but stilled pending" is an oxymoron. You are getting caught up in the poor naming of `Promise.resolve` and the `resolve` parameter...

Funny, I came up with this exact same idea (returning the oncancel handler from the promise constructor body or "executor") when thinking about this myself. Here is a simple userland...

Thank you for your prompt and detailed reply, and sorry to make you rehash stuff that is already out there. It seems to me that the mismatch is that we...

> Uh, an identifiable type does need a new type. Especially if there is supposed to be a try-syntax for it. And yes, it is horribly clumsy. Often you want...

Here is something: https://github.com/rtm/cancelable-promises

In case you're interested, I've completely re-engineered my approach, which now treats canceled promises as being in a permanently pending state: https://github.com/rtm/cancelable-promise

@manuelnaranjo Many thanks for this tip, which worked perfectly for me. However, although I know this is not the proper place to rant, I have to say the entire Cordova...

Is there any known workaround for this issue, or any update?

`// prettier-ignore-{start,end}` don't work for me in JS files at least even from the command line. I don't think this features is defined to work for JavaScript. `// prettier-ignore` does...