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
039f703b
Kaydet (Commit)
039f703b
authored
Ara 02, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Close #22473: asyncio doc: rephrase Future with run_forever() example
üst
eb2763dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
asyncio-task.rst
Doc/library/asyncio-task.rst
+3
-8
No files found.
Doc/library/asyncio-task.rst
Dosyayı görüntüle @
039f703b
...
@@ -337,14 +337,9 @@ flow::
...
@@ -337,14 +337,9 @@ flow::
finally:
finally:
loop.close()
loop.close()
In this example, the future is responsible to display the result and to stop
In this example, the future is used to link ``slow_operation()`` to
the loop.
``got_result()``: when ``slow_operation()`` is done, ``got_result()`` is called
with the result.
.. note::
The "slow_operation" coroutine object is only executed when the event loop
starts running, so it is possible to add a "done callback" to the future
after creating the task scheduling the coroutine object.
Task
Task
...
...
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