Ultra-performant Promise implementation in Python
MIT License
Bot releases are visible (Hide)
Dataloader
keep cache object #73Promise
and Dataloader
thread-safe #81Published by syrusakbary about 6 years ago
iscoroutine
returning True
for generators (by using iscoroutine
from inspect
instead of asyncio
)Published by syrusakbary over 6 years ago
2.2.0 - Release candidate 1
(changelog to come soon)
Published by syrusakbary over 7 years ago
Promise.resolve(coroutine)
returning a Task
instead of a Promise
code sample
Published by syrusakbary over 7 years ago
This is a completely rewritten version of Promise
in python, based in the ultra-performant and low-memory bluebird.js promise 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)Promise.all
fast implementation.promise.get
raised exceptions now include traceback.Promise
resolution.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
Published by syrusakbary almost 8 years ago
is_thenable
now returns True
for coroutines. 8b0d5da3dca2d99671b820478ef74353ac24c97bPublished by syrusakbary about 8 years ago
Added static type checking (using mypy) tests and increased coverage to 100%.
Published by syrusakbary over 8 years ago
First version of promise.