commit | d7e19bb566889343f39c34c98bca4d6db61b53d7 | [log] [tgz] |
---|---|---|
author | Yury Selivanov <yselivanov@sprymix.com> | Mon May 11 16:33:41 2015 -0400 |
committer | Yury Selivanov <yselivanov@sprymix.com> | Mon May 11 16:33:41 2015 -0400 |
tree | da2d9f56e2a4962addfce9634606827e39917148 | |
parent | 71854618973f112b54a620cc565cf0bda8e1508a [diff] [blame] |
docs/asyncio: Document new ensure_future() and deprecated async()
diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst index 41b24ac..e9638e3 100644 --- a/Doc/library/asyncio-stream.rst +++ b/Doc/library/asyncio-stream.rst
@@ -364,7 +364,7 @@ url = sys.argv[1] loop = asyncio.get_event_loop() - task = asyncio.async(print_http_headers(url)) + task = asyncio.ensure_future(print_http_headers(url)) loop.run_until_complete(task) loop.close()