Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
9edad3c7
Unverified
Kaydet (Commit)
9edad3c7
authored
Ara 11, 2017
tarafından
Yury Selivanov
Kaydeden (comit)
GitHub
Ara 11, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-32272: Remove asyncio.async() function. (#4784)
üst
1b74f9b7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
30 deletions
+2
-30
asyncio-eventloop.rst
Doc/library/asyncio-eventloop.rst
+0
-3
asyncio-task.rst
Doc/library/asyncio-task.rst
+0
-6
tasks.py
Lib/asyncio/tasks.py
+1
-21
2017-12-10-18-59-13.bpo-32272.Mu84Am.rst
...S.d/next/Library/2017-12-10-18-59-13.bpo-32272.Mu84Am.rst
+1
-0
No files found.
Doc/library/asyncio-eventloop.rst
Dosyayı görüntüle @
9edad3c7
...
...
@@ -235,9 +235,6 @@ Tasks
interoperability. In this case, the result type is a subclass of
:class:`Task`.
This method was added in Python 3.4.2. Use the :func:`async` function to
support also older Python versions.
.. versionadded:: 3.4.2
.. method:: AbstractEventLoop.set_task_factory(factory)
...
...
Doc/library/asyncio-task.rst
Dosyayı görüntüle @
9edad3c7
...
...
@@ -538,12 +538,6 @@ Task functions
The :meth:`AbstractEventLoop.create_task` method.
.. function:: async(coro_or_future, \*, loop=None)
A deprecated alias to :func:`ensure_future`.
.. deprecated:: 3.4.4
.. function:: wrap_future(future, \*, loop=None)
Wrap a :class:`concurrent.futures.Future` object in a :class:`Future`
...
...
Lib/asyncio/tasks.py
Dosyayı görüntüle @
9edad3c7
...
...
@@ -3,7 +3,7 @@
__all__
=
(
'Task'
,
'FIRST_COMPLETED'
,
'FIRST_EXCEPTION'
,
'ALL_COMPLETED'
,
'wait'
,
'wait_for'
,
'as_completed'
,
'sleep'
,
'async'
,
'wait'
,
'wait_for'
,
'as_completed'
,
'sleep'
,
'gather'
,
'shield'
,
'ensure_future'
,
'run_coroutine_threadsafe'
,
)
...
...
@@ -489,26 +489,6 @@ async def sleep(delay, result=None, *, loop=None):
h
.
cancel
()
def
async_
(
coro_or_future
,
*
,
loop
=
None
):
"""Wrap a coroutine in a future.
If the argument is a Future, it is returned directly.
This function is deprecated in 3.5. Use asyncio.ensure_future() instead.
"""
warnings
.
warn
(
"asyncio.async() function is deprecated, use ensure_future()"
,
DeprecationWarning
,
stacklevel
=
2
)
return
ensure_future
(
coro_or_future
,
loop
=
loop
)
# Silence DeprecationWarning:
globals
()[
'async'
]
=
async_
async_
.
__name__
=
'async'
del
async_
def
ensure_future
(
coro_or_future
,
*
,
loop
=
None
):
"""Wrap a coroutine or an awaitable in a future.
...
...
Misc/NEWS.d/next/Library/2017-12-10-18-59-13.bpo-32272.Mu84Am.rst
0 → 100644
Dosyayı görüntüle @
9edad3c7
Remove asyncio.async() function.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment