| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The Tulip project is the asyncio module for Python 3.3. Since Python 3.4, asyncio is now part of the standard library.
Help:
Pages:
The asyncio module provides infrastructure for writing single-threaded concurrent code using coroutines, multiplexing I/O access over sockets and other resources, running network clients and servers, and other related primitives. Here is a more detailed list of the package contents:
Hello World using an asyncio coroutine:
import asyncio
@asyncio.coroutine
def hello_world():
print("Hello World!")
loop = asyncio.get_event_loop()
loop.run_until_complete(hello_world())
loop.close()
For AsyncIO on Python 2, see the trollius project.
| Back | FazBrowse Home | New Git URL |