Add an alias for ensure_future as async (#1120)

`async` is still present in 3.6 and `ensure_future` doesn't exist before 3.4.4
This commit is contained in:
Roy Williams
2017-03-30 11:58:13 -07:00
committed by Jelle Zijlstra
parent 1ea3d2de57
commit 90415f5f9d

View File

@@ -48,6 +48,7 @@ from asyncio.tasks import (
ALL_COMPLETED as ALL_COMPLETED,
as_completed as as_completed,
ensure_future as ensure_future,
ensure_future as async,
gather as gather,
run_coroutine_threadsafe as run_coroutine_threadsafe,
shield as shield,