-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Q.fulfill #205
Comments
I’m going to leave it around in the off-chance it saves some-one’s bacon to be able to mark a value with a then method as a non-promise. |
Code sample where it helps please, for historical purposes if nothing else? |
Supposing you were using: https://github.com/polotek/procstreams A procstream has a then method, but is not a promise. function getStream() {
return prepareToGetStream()
.then(function () {
return Q.fulfill(procstream("cat README.md"));
})
} |
Huh, for some reason I thought that wouldn't work, but somehow it does. I think this means I need to revise promises-aplus/promises-spec#76 to take into account such "marked-as-non-thenable thenables." |
At the end of the day, if this is the only valid use-case, naming it Q.notAPromise(value) might steer folks away from misery. |
I like that. In which case, I'd say that |
Yeah. Revising the name again: Q.nonPromise(x). |
Can I ask what are the reasons for "heating" |
My reasoning would be that things you do very uncommonly should have slightly awkard APIs that express exactly what you're trying to do. |
We don't like it anymore, I think. It should die before 0.9 goes out the door.
The text was updated successfully, but these errors were encountered: