v2.0.0
Changelog
This is a completely rewritten version of Promise in python, based in the ultra-performant and low-memory bluebird.js promise implementation.
- New dataloader implementation
Promise.resolvenow acts the same asPromise.castPromise.rejectis now a static method (instead of a instance one, like in previous versions)- New
Promise.allfast implementation. promise.getraised exceptions now include traceback.- Custom schedulers for
Promiseresolution.
Deprecation
Promise.promisifyis now a function wrapper, that executes the function, but returning aPromise. CallingPromise.promisifyon a static value will be deprecated in next versions.promise.fulfillis renamed topromise.do_fulfillpromise.rejected/promise.rejectis renamed topromise.do_reject