Skip to content

Instantly share code, notes, and snippets.

View asvetlov's full-sized avatar

Andrew Svetlov asvetlov

  • apolo.us
  • Gijon
View GitHub Profile
import asyncio
@asyncio.coroutine
def sender(queue):
print('sender started')
try:
yield from asyncio.sleep(3)
while True:
data = yield from queue.get()