Skip to content

v2.0.0

Compare
Choose a tag to compare
@syrusakbary syrusakbary released this 19 Apr 05:35
· 74 commits to master since this release

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.resolve now acts the same as Promise.cast
  • Promise.reject is now a static method (instead of a instance one, like in previous versions)
  • New Promise.all fast implementation.
  • promise.get raised exceptions now include traceback.
  • Custom schedulers for Promise resolution.

Deprecation

  • Promise.promisify is now a function wrapper, that executes the function, but returning a Promise. Calling Promise.promisify on a static value will be deprecated in next versions.
  • promise.fulfill is renamed to promise.do_fulfill
  • promise.rejected/promise.reject is renamed to promise.do_reject