Blame SOURCES/python-trollius-async.patch
|
|
f57b58 |
--- trollius/tasks.py.orig 2016-02-05 05:14:29.000000000 -0700
|
|
|
f57b58 |
+++ trollius/tasks.py 2018-07-21 14:20:25.014870895 -0600
|
|
|
f57b58 |
@@ -3,7 +3,7 @@ from __future__ import print_function
|
|
|
f57b58 |
|
|
|
f57b58 |
__all__ = ['Task',
|
|
|
f57b58 |
'FIRST_COMPLETED', 'FIRST_EXCEPTION', 'ALL_COMPLETED',
|
|
|
f57b58 |
- 'wait', 'wait_for', 'as_completed', 'sleep', 'async',
|
|
|
f57b58 |
+ 'wait', 'wait_for', 'as_completed', 'sleep', 'async_',
|
|
|
f57b58 |
'gather', 'shield', 'ensure_future',
|
|
|
f57b58 |
]
|
|
|
f57b58 |
|
|
|
f57b58 |
@@ -562,7 +562,7 @@ def sleep(delay, result=None, loop=None)
|
|
|
f57b58 |
h.cancel()
|
|
|
f57b58 |
|
|
|
f57b58 |
|
|
|
f57b58 |
-def async(coro_or_future, loop=None):
|
|
|
f57b58 |
+def async_(coro_or_future, loop=None):
|
|
|
f57b58 |
"""Wrap a coroutine in a future.
|
|
|
f57b58 |
|
|
|
f57b58 |
If the argument is a Future, it is returned directly.
|