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
5819cfa5
Kaydet (Commit)
5819cfa5
authored
Ock 06, 2015
tarafından
Zachary Ware
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cosmetic fixes to the 'Develop with asyncio' page
üst
0603d304
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
asyncio-dev.rst
Doc/library/asyncio-dev.rst
+10
-8
No files found.
Doc/library/asyncio-dev.rst
Dosyayı görüntüle @
5819cfa5
...
...
@@ -71,8 +71,8 @@ the event loop.
.. seealso::
See the :ref:`Synchronization primitives <asyncio-sync>` section to
synchronize tasks.
The :ref:`Synchronization primitives <asyncio-sync>` section describes ways
to
synchronize tasks.
.. _asyncio-handle-blocking:
...
...
@@ -112,8 +112,8 @@ Detect coroutine objects never scheduled
----------------------------------------
When a coroutine function is called and its result is not passed to
:func:`async` or to the :meth:`BaseEventLoop.create_task` method
:
the execution
of the coroutine obje
t will never be scheduled and it
is probably a bug.
:func:`async` or to the :meth:`BaseEventLoop.create_task` method
,
the execution
of the coroutine obje
ct will never be scheduled which
is probably a bug.
:ref:`Enable the debug mode of asyncio <asyncio-debug-mode>` to :ref:`log a
warning <asyncio-logger>` to detect it.
...
...
@@ -147,7 +147,7 @@ Detect exceptions never consumed
Python usually calls :func:`sys.displayhook` on unhandled exceptions. If
:meth:`Future.set_exception` is called, but the exception is never consumed,
:func:`sys.displayhook` is not called. Instead,
a
:ref:`a log is emitted
:func:`sys.displayhook` is not called. Instead, :ref:`a log is emitted
<asyncio-logger>` when the future is deleted by the garbage collector, with the
traceback where the exception was raised.
...
...
@@ -195,7 +195,7 @@ traceback where the task was created. Output in debug mode::
raise Exception("not consumed")
Exception: not consumed
There are different options to fix this issue. The first option is to chain t
o
There are different options to fix this issue. The first option is to chain t
he
coroutine in another coroutine and use classic try/except::
@asyncio.coroutine
...
...
@@ -218,10 +218,12 @@ function::
except Exception:
print("exception consumed")
See also the :meth:`Future.exception` method.
.. seealso::
The :meth:`Future.exception` method.
Chain cor
rectly coroutines
Chain cor
outines correctly
--------------------------
When a coroutine function calls other coroutine functions and tasks, they
...
...
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