diff -r a32ced15b883 Doc/library/asyncio-task.rst
--- a/Doc/library/asyncio-task.rst Fri Jun 06 01:27:34 2014 -0500
+++ b/Doc/library/asyncio-task.rst Fri Jun 06 14:27:40 2014 +0200
@@ -521,6 +521,8 @@ Task functions
to complete. Coroutines will be wrapped in Tasks. Returns two sets of
:class:`Future`: (done, pending).
+ The sequence *futures* must not be empty.
+
*timeout* can be used to control the maximum number of seconds to wait before
returning. *timeout* can be an int or float. If *timeout* is not specified
or ``None``, there is no limit to the wait time.
diff -r a32ced15b883 Lib/asyncio/tasks.py
--- a/Lib/asyncio/tasks.py Fri Jun 06 01:27:34 2014 -0500
+++ b/Lib/asyncio/tasks.py Fri Jun 06 14:27:40 2014 +0200
@@ -387,6 +387,8 @@ ALL_COMPLETED = concurrent.futures.ALL_C
def wait(fs, *, loop=None, timeout=None, return_when=ALL_COMPLETED):
"""Wait for the Futures and coroutines given by fs to complete.
+ The sequence futures must not be empty.
+
Coroutines will be wrapped in Tasks.
Returns two sets of Future: (done, pending).