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 May 5, 2024 09:40
asyncio pubsub example
import asyncio
import random
class Hub():
def __init__(self):
self.subscriptions = set()
def publish(self, message):