Despite the fact that this code is distributed under the MIT License, IT IS PROHIBITED to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software for any commercial or non-commercial purposes by Jet Brains and any of its subsidiaries, parent organization or affiliates.
PromisedIO
PromisedIO is free and open source software released under the permissive MIT license.
You can read about promises here.
promise module
clearfreelists
clearfreelists() -> None
Clear all freelists.
deferred
deferred() -> Deferred
Create new Deferred object.
exec_async
exec_async(coro: Coroutine, context: Any = None) -> None
Start new coroutine and set the context for the new coroutine.
get_context
get_context() -> Any
Get context of current corroutine.
process_promise_chain
process_promise_chain() -> int
Process all scheduled (resolved or rejected) promises.
Returns active promise count.
run_forever
run_forever() -> None
Start simple event loop.
setfreelistlimits
setfreelistlimits(promise_limit: int = -1, promiseiter_limit: int = -1, deferred_limit: int = -1, coroutine_limit: int = -1) -> None
Update freelist limits. Default limit for each type is 1024.
Deferred
Deferred.promise
Deferred.promise() -> Promise
Get related Promise object.
Deferred.reject
Deferred.reject(value: Exception) -> None
Reject related Promise object with the given exception value.
Deferred.resolve
Deferred.resolve(value: Any) -> None
Resolve related Promise object with the given value.
Lock
Lock.new
Lock.__new__() -> Any
Create new Lock object.
Lock.acquire
Lock.acquire() -> Promise
Acquire the lock.
Lock.release
Lock.release() -> Promise
Release the lock.
Promise
Promise.catch
Promise.catch(rejected: Callable) -> Promise
The same as .then(None, rejected)
Promise.then
Promise.then(fulfilled: Callable = None, rejected: Callable = None) -> Promise
Create new Promise.
It takes up to two arguments: callback functions for the success and failure cases of the promise.
Metadata
Release files for promisedio-promise 1.0.23
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| promisedio-promise-1.0.23.tar.gz | 16.7 kB | Without provenance | Details for promisedio-promise-1.0.23.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| promisedio_promise-1.0.23-cp310-cp310-macosx_12_0_x86_64.whl | CPython 3.10 | CPython 3.10 | macOS 12.0+ x86-64 | Details for promisedio_promise-1.0.23-cp310-cp310-macosx_12_0_x86_64.whl |
Total release size: 99.2 kB
Release files / promisedio-promise-1.0.23.tar.gz
| Download URL | promisedio-promise-1.0.23.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
603dbbcbe8043d98386be1fb58eb5deaa4b7aa55efb5b01ac1fca6ef8ab0c803
|
|
BLAKE2b-256 checksum How to use checksums |
e11e04995ed7d2a8b6ddc81063f80ba33e12a52fc49f4184a3fbd266e89c87da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.0 Darwin/21.3.0
|
Release files / promisedio_promise-1.0.23-cp310-cp310-macosx_12_0_x86_64.whl
| Download URL | promisedio_promise-1.0.23-cp310-cp310-macosx_12_0_x86_64.whl |
|---|---|
| Size | 82.4 kB |
| Tags | CPython 3.10 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
7605b5e460a9529b52fe6b3876ea0b1e78acf60b381629eead09683bb8401494
|
|
BLAKE2b-256 checksum How to use checksums |
c92040664601b739bd409d324b72fd2240e0a69f1a8542ff3d491c4e51f5d202
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.0 Darwin/21.3.0
|
Security for promisedio-promise 1.0.23
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.