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
fad6af27
Unverified
Kaydet (Commit)
fad6af27
authored
Eyl 25, 2018
tarafından
Yury Selivanov
Kaydeden (comit)
GitHub
Eyl 25, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9579)
üst
5a5ce064
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
asyncio-task.rst
Doc/library/asyncio-task.rst
+5
-5
tasks.py
Lib/asyncio/tasks.py
+6
-6
No files found.
Doc/library/asyncio-task.rst
Dosyayı görüntüle @
fad6af27
...
...
@@ -277,7 +277,7 @@ Sleeping
when the coroutine completes.
The *loop* argument is deprecated and scheduled for removal
in Python
4.
0.
in Python
3.1
0.
.. _asyncio_example_sleep:
...
...
@@ -435,7 +435,7 @@ Timeouts
If the wait is cancelled, the future *aw* is also cancelled.
The *loop* argument is deprecated and scheduled for removal
in Python
4.
0.
in Python
3.1
0.
.. _asyncio_example_waitfor:
...
...
@@ -487,7 +487,7 @@ Waiting Primitives
done, pending = await asyncio.wait(aws)
The *loop* argument is deprecated and scheduled for removal
in Python
4.
0.
in Python
3.1
0.
*timeout* (a float or int), if specified, can be used to control
the maximum number of seconds to wait before returning.
...
...
@@ -888,7 +888,7 @@ Generator-based Coroutines
.. note::
Support for generator-based coroutines is **deprecated** and
is scheduled for removal in Python
4.
0.
is scheduled for removal in Python
3.1
0.
Generator-based coroutines predate async/await syntax. They are
Python generators that use ``yield from`` expressions to await
...
...
@@ -914,7 +914,7 @@ enforced.
await old_style_coroutine()
This decorator is **deprecated** and is scheduled for removal in
Python
4.
0.
Python
3.1
0.
This decorator should not be used for :keyword:`async def`
coroutines.
...
...
Lib/asyncio/tasks.py
Dosyayı görüntüle @
fad6af27
...
...
@@ -384,8 +384,8 @@ async def wait(fs, *, loop=None, timeout=None, return_when=ALL_COMPLETED):
if
loop
is
None
:
loop
=
events
.
get_running_loop
()
else
:
warnings
.
warn
(
"The loop argument is deprecated and scheduled for"
"removal in Python
4.
0."
,
warnings
.
warn
(
"The loop argument is deprecated and scheduled for
"
"removal in Python
3.1
0."
,
DeprecationWarning
,
stacklevel
=
2
)
fs
=
{
ensure_future
(
f
,
loop
=
loop
)
for
f
in
set
(
fs
)}
...
...
@@ -414,8 +414,8 @@ async def wait_for(fut, timeout, *, loop=None):
if
loop
is
None
:
loop
=
events
.
get_running_loop
()
else
:
warnings
.
warn
(
"The loop argument is deprecated and scheduled for"
"removal in Python
4.
0."
,
warnings
.
warn
(
"The loop argument is deprecated and scheduled for
"
"removal in Python
3.1
0."
,
DeprecationWarning
,
stacklevel
=
2
)
if
timeout
is
None
:
...
...
@@ -595,8 +595,8 @@ async def sleep(delay, result=None, *, loop=None):
if
loop
is
None
:
loop
=
events
.
get_running_loop
()
else
:
warnings
.
warn
(
"The loop argument is deprecated and scheduled for"
"removal in Python
4.
0."
,
warnings
.
warn
(
"The loop argument is deprecated and scheduled for
"
"removal in Python
3.1
0."
,
DeprecationWarning
,
stacklevel
=
2
)
future
=
loop
.
create_future
()
...
...
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