Promise.cast and Promise.resolve

Brendan Eich brendan at mozilla.com
Tue Jan 28 12:30:37 PST 2014


Quildreen Motta wrote:
> If that's correct, I don't see any use cases for Promise.resolve right 
> now, unless a library where to provide a corresponding unspecified 
> `flatMap` implementation.

IIRC (and I may not; endless promises threads make me sleepy) this is 
the reason to have Promise.resolve: to enable some to blaze the flatMap 
trail ahead of ES6.

/be


More information about the es-discuss mailing list