Skip to main content
https://github.com/facebookincubator/later/actions/workflows/ci.yml/badge.svg?branch=main https://img.shields.io/badge/code%20style-black-000000.svg

What is later?

later is a play on Async not happening now but at some point in the future. It was also an awesome name for a toolkit for writing AsyncIO applications. The batteries if you will for AsyncIO.

later is a collection of asyncio batteries created at Meta for supporting asyncio services.

later offers the following:
  • Unittesting
    • later.unittest.TestCase - An IsolatedAsyncioTestCase that insures tasks are not left orphaned and asyncio never calls its error handler.

    • later.unittest.mock.AsyncContextManager - A factory for easy mocking out AsyncContextManager

  • Tasks*
    • later.cancel - The correct way to cancel a Task/Future and insure it is awaited

    • later.as_task - Decorator to turn coroutines into Tasks.

    • later.Watcher - Watch tasks and ensure they don’t die - take action when they do. This is kinda like a asyncio.TaskGroup

    • later.herd - A Decorator that provides coroutines with basic thundering herd protection.

    • later.task.TaskSentinel - A Completed Future, a default value for a asyncio.Task argument so you don’t also have to accept None.

  • Synchronization
    • later.event.BiDirectionalEvent - two way asyncio.Event for Handshake style synchronization.

License

later is Apache licensed, as found in the LICENSE file

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

later-26.8.1.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

later-26.8.1-py3-none-any.whl (43.8 kB view details)

Uploaded Python 3

File details

Details for the file later-26.8.1.tar.gz.

File metadata

  • Download URL: later-26.8.1.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.34.2

File hashes

Hashes for later-26.8.1.tar.gz
Algorithm Hash digest
SHA256 7e86d7586f098ceb38f629b97b22764bf62917c4f601dd459e71fc644c7e1c99
MD5 103f83fa39d1e422efb9a92df8e52d6e
BLAKE2b-256 55824453234fd3382d5456c223303249757a19a7addd7a44e19dc9c9ffa69220

See more details on using hashes here.

File details

Details for the file later-26.8.1-py3-none-any.whl.

File metadata

  • Download URL: later-26.8.1-py3-none-any.whl
  • Upload date:
  • Size: 43.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.34.2

File hashes

Hashes for later-26.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ebd30ed02be18e5eaf654518d2a11329bb37508db3fce90a9ef578dcb705fdfb
MD5 f990233eba0e2e310b807276af2fcae6
BLAKE2b-256 d1b37c0b5d34fc8d755364ffe0e542da71c9b975f58254a4ce4d34adea492db6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page