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
28d0ae48
Kaydet (Commit)
28d0ae48
authored
May 28, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #21376: document asyncio.TimeoutError
üst
12c575f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
asyncio-task.rst
Doc/library/asyncio-task.rst
+17
-4
No files found.
Doc/library/asyncio-task.rst
Dosyayı görüntüle @
28d0ae48
...
@@ -142,6 +142,18 @@ InvalidStateError
...
@@ -142,6 +142,18 @@ InvalidStateError
The operation is not allowed in this state.
The operation is not allowed in this state.
TimeoutError
------------
.. exception:: TimeoutError
The operation exceeded the given deadline.
.. note::
This exception is different from the builtin :exc:`TimeoutError` exception!
Future
Future
------
------
...
@@ -400,7 +412,8 @@ Task functions
...
@@ -400,7 +412,8 @@ Task functions
Return an iterator whose values, when waited for, are :class:`Future`
Return an iterator whose values, when waited for, are :class:`Future`
instances.
instances.
Raises :exc:`TimeoutError` if the timeout occurs before all Futures are done.
Raises :exc:`asyncio.TimeoutError` if the timeout occurs before all Futures
are done.
Example::
Example::
...
@@ -521,8 +534,8 @@ Task functions
...
@@ -521,8 +534,8 @@ Task functions
.. note::
.. note::
This does not raise :exc:`
TimeoutError`! Futures that aren't done when
This does not raise :exc:`
asyncio.TimeoutError`! Futures that aren't done
the timeout occurs are returned in the second set.
when
the timeout occurs are returned in the second set.
.. function:: wait_for(fut, timeout, \*, loop=None)
.. function:: wait_for(fut, timeout, \*, loop=None)
...
@@ -534,7 +547,7 @@ Task functions
...
@@ -534,7 +547,7 @@ Task functions
Coroutine will be wrapped in :class:`Task`.
Coroutine will be wrapped in :class:`Task`.
Returns result of the Future or coroutine. When a timeout occurs, it
Returns result of the Future or coroutine. When a timeout occurs, it
cancels the task and raises :exc:`TimeoutError`. To avoid the task
cancels the task and raises :exc:`
asyncio.
TimeoutError`. To avoid the task
cancellation, wrap it in :func:`shield`.
cancellation, wrap it in :func:`shield`.
This function is a :ref:`coroutine <coroutine>`.
This function is a :ref:`coroutine <coroutine>`.
...
...
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