Skip to content

Instantly share code, notes, and snippets.

View londarks's full-sized avatar
⚠️
Functions describe the world

Gabriel londarks

⚠️
Functions describe the world
View GitHub Profile
@appeltel
appeltel / pubsub.py
Last active November 27, 2024 18:36
asyncio pubsub example
import asyncio
import random
class Hub():
def __init__(self):
self.subscriptions = set()
def publish(self, message):