GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Python/test/asyncio_hello2.py at master · lbpstar/Python Expand file tree/ Copy pathasyncio_hello2.pyMore file actions 13 lines (11 loc) · 332 Bytes / Copy pathasyncio_hello2.pyFile metadata and controls13 lines (11 loc) · 332 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 import threading import asyncio @asyncio.coroutine def hello(): print('Hello world! (%s)' % threading.currentThread()) yield from asyncio.sleep(1) print('Hello again! (%s)' % threading.currentThread()) loop = asyncio.get_event_loop() tasks = [hello(), hello()] loop.run_until_complete(asyncio.wait(tasks)) loop.close() |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |