Skip to main content
Since sync code can’t receive from both contexts concurrently, we collect them sequentially — but the lazy-routing in receive() ensures that events consumed while reading context 1 are queued for context 2 (and vice-versa).
From cartesia-python/examples/examples.py:395

Run this example