Skip to main content

A Python implementation of tokio::sync::oneshot::channel

Project description

1️⃣ One-Shot Channel

This library uses documentation copied and pasted from Tokio's sync::oneshot library, which they have generously published under the MIT license. 🙏

This is a Python implementation of their one-shot channel.

💻 Installation

This package is published to PyPI as babichjacob-oneshot-channel.

🛠 Usage

from asyncio import create_task, gather, run, sleep
from itertools import count

from oneshot_channel import channel, Receiver, Sender

# TODO: write usage guidance

😵 Help! I have a question

Create an issue and I'll try to help.

😡 Fix! There is something that needs improvement

Create an issue or pull request and I'll try to fix.

📄 License

MIT

🙏 Attribution

This README was generated with ❤️ by readme-md-generator

Project details


Download files

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

Source Distribution

babichjacob_oneshot_channel-0.3.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file babichjacob_oneshot_channel-0.3.0.tar.gz.

File metadata

  • Download URL: babichjacob_oneshot_channel-0.3.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/5.15.0-1034-azure

File hashes

Hashes for babichjacob_oneshot_channel-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6b07c1af7b36df727dfbe94f0e74368e31e876da9fe065267b557a251f8d34c6
MD5 7c88f34cc637298337093f5f35699955
BLAKE2b-256 9f2e9067d3f768137d37dddec598d9546217f3002388d98df079365c5d326e64

See more details on using hashes here.

File details

Details for the file babichjacob_oneshot_channel-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for babichjacob_oneshot_channel-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a7f868d7a8d0cbffa8ccb7ae503544d8f27750c02175d0f140d4dd36adf5652
MD5 d5db7ab684eb379696d4777de34aa323
BLAKE2b-256 e725b51a4243be0bdfea86f48982ad38422355f056eb01d0bd312e68c7dffe8c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page