It would be nice if pr would work with any Promise library instead of using a bundled (outdated) bluebird.
This module prfun had a nice pattern where it either uses a local (polyfilled) ES6 Promise or user-supplied one:
var Promise = prfun(require('bluebird'));
Maybe this is interesting forpr too: this pattern saves a Promise.cast() around every call (it gets very tedious) and instead just use the same library as the rest of the user code.
It would be nice if
pr
would work with any Promise library instead of using a bundled (outdated) bluebird.This module prfun had a nice pattern where it either uses a local (polyfilled) ES6 Promise or user-supplied one:
Maybe this is interesting for
pr
too: this pattern saves aPromise.cast()
around every call (it gets very tedious) and instead just use the same library as the rest of the user code.