Skip to main content

Later: queue functions for execution later in priority and time order.

I use Later objects for convenient queuing of functions whose execution occurs later in a priority order with capacity constraints.

Why not futures? I already had this, I prefer its naming scheme and interface, and futures did not seem to support prioritising execution.

Use is simple enough: create a Later instance and typically queue functions with the .defer() method:

L = Later(4)      # a Later with a parallelism of 4
...
LF = L.defer(func, *args, **kwargs)
...
x = LF()          # collect result

The .defer method and its sublings return a LateFunction, which is a subclass of cs.asynchron.Asynchron. As such it is a callable, so to collect the result you just call the LateFunction.

Metadata

Release files for cs.later 20160828

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs.later 20160828
File Size Uploaded Provenance Actions
cs.later-20160828.tar.gz 13.3 kB Without provenance Details for cs.later-20160828.tar.gz

Release files / cs.later-20160828.tar.gz

Download URL cs.later-20160828.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bda6b523ddc5a7b8ab5b10db5f34783b831e941cde74f5d19bb7301fdd505f15
BLAKE2b-256 checksum
How to use checksums
069e52f9018f14b194f374a5b12178cb99116870fbb0cce5670f73e61170ace8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for cs.later 20160828

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page