update from Atlas with major reorg

This commit is contained in:
Luciano Ramalho
2015-04-17 21:29:30 -03:00
parent 57902d31b5
commit a786180239
134 changed files with 369 additions and 520 deletions

View File

@@ -0,0 +1,17 @@
import asyncio
@asyncio.coroutine
def show_remaining():
for remaining in range(5, 0, -1):
print('Remaining: ', remaining)
yield from asyncio.sleep(1)
def main():
loop = asyncio.get_event_loop()
try:
loop.run_until_complete(show_remaining())
finally:
loop.close()
if __name__ == '__main__':
main()