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 oneshot_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.2.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

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