This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import threading | |
| import asyncio | |
| from queue import Queue as BlockingQueue | |
| class TwoSidedQueue: | |
| """ | |
| Behaves like an `asyncio.Queue`, but `get` and `put` act on different ends. | |
| """ | |
| def __init__(self, queue_in, queue_out): |