Skip to content

A Python implementation of a one-shot channel, like from Tokio in Rust

Notifications You must be signed in to change notification settings

babichjacob/python-oneshot-channel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Python implementation of a one-shot channel, like from Tokio in Rust

Topics

Resources

Stars

Watchers

Forks

Languages