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
6888b96c
Kaydet (Commit)
6888b96c
authored
Eki 11, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
asyncio doc: cleanup Hello World examples
üst
5121a9ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
asyncio-eventloop.rst
Doc/library/asyncio-eventloop.rst
+8
-4
asyncio-task.rst
Doc/library/asyncio-task.rst
+3
-2
No files found.
Doc/library/asyncio-eventloop.rst
Dosyayı görüntüle @
6888b96c
...
...
@@ -633,13 +633,16 @@ Handle
Cancel the call.
Event loop examples
===================
.. _asyncio-hello-world-callback:
Example: Hello World (callback)
---------------------------
----
Hello World with a callback
---------------------------
Print ``Hello World`` every two seconds, using a callback::
Print ``"Hello World"`` every two seconds using a callback scheduled by the
:meth:`BaseEventLoop.call_soon` method::
import asyncio
...
...
@@ -656,7 +659,8 @@ Print ``Hello World`` every two seconds, using a callback::
.. seealso::
:ref:`Hello World example using a coroutine <asyncio-hello-world-coroutine>`.
The :ref:`Hello World coroutine <asyncio-hello-world-coroutine>` example
uses a :ref:`coroutine <coroutine>`.
Example: Set signal handlers for SIGINT and SIGTERM
...
...
Doc/library/asyncio-task.rst
Dosyayı görüntüle @
6888b96c
...
...
@@ -98,8 +98,9 @@ Print ``"Hello World"`` every two seconds using a coroutine::
.. seealso::
:ref:`Hello World example using a callback <asyncio-hello-world-callback>`.
The :ref:`Hello World with a callback <asyncio-hello-world-callback>`
example uses a callback scheduled by the :meth:`BaseEventLoop.call_soon`
method.
Example: Chain coroutines
^^^^^^^^^^^^^^^^^^^^^^^^^
...
...
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