Skip to content

Instantly share code, notes, and snippets.

View sietekk's full-sized avatar

Michael Conroy sietekk

View GitHub Profile
@appeltel
appeltel / pubsub.py
Last active January 21, 2026 21:32
asyncio pubsub example
import asyncio
import random
class Hub():
def __init__(self):
self.subscriptions = set()
def publish(self, message):