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
863c69cf
Kaydet (Commit)
863c69cf
authored
Ock 09, 2015
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.4 (asyncio doc)
üst
4f5366e6
7eb10311
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
asyncio-eventloop.rst
Doc/library/asyncio-eventloop.rst
+5
-5
asyncio-eventloops.rst
Doc/library/asyncio-eventloops.rst
+2
-1
No files found.
Doc/library/asyncio-eventloop.rst
Dosyayı görüntüle @
863c69cf
...
@@ -681,12 +681,12 @@ Handle
...
@@ -681,12 +681,12 @@ Handle
Event loop examples
Event loop examples
===================
-------------------
.. _asyncio-hello-world-callback:
.. _asyncio-hello-world-callback:
Hello World with call_soon()
Hello World with call_soon()
----------------------------
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Example using the :meth:`BaseEventLoop.call_soon` method to schedule a
Example using the :meth:`BaseEventLoop.call_soon` method to schedule a
callback. The callback displays ``"Hello World"`` and then stops the event
callback. The callback displays ``"Hello World"`` and then stops the event
...
@@ -716,7 +716,7 @@ loop::
...
@@ -716,7 +716,7 @@ loop::
.. _asyncio-date-callback:
.. _asyncio-date-callback:
Display the current date with call_later()
Display the current date with call_later()
------------------------------------------
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Example of callback displaying the current date every second. The callback uses
Example of callback displaying the current date every second. The callback uses
the :meth:`BaseEventLoop.call_later` method to reschedule itself during 5
the :meth:`BaseEventLoop.call_later` method to reschedule itself during 5
...
@@ -752,7 +752,7 @@ seconds, and then stops the event loop::
...
@@ -752,7 +752,7 @@ seconds, and then stops the event loop::
.. _asyncio-watch-read-event:
.. _asyncio-watch-read-event:
Watch a file descriptor for read events
Watch a file descriptor for read events
---------------------------------------
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Wait until a file descriptor received some data using the
Wait until a file descriptor received some data using the
:meth:`BaseEventLoop.add_reader` method and then close the event loop::
:meth:`BaseEventLoop.add_reader` method and then close the event loop::
...
@@ -801,7 +801,7 @@ Wait until a file descriptor received some data using the
...
@@ -801,7 +801,7 @@ Wait until a file descriptor received some data using the
Set signal handlers for SIGINT and SIGTERM
Set signal handlers for SIGINT and SIGTERM
------------------------------------------
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using
Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using
the :meth:`BaseEventLoop.add_signal_handler` method::
the :meth:`BaseEventLoop.add_signal_handler` method::
...
...
Doc/library/asyncio-eventloops.rst
Dosyayı görüntüle @
863c69cf
...
@@ -87,7 +87,8 @@ Common limits of Windows event loops:
...
@@ -87,7 +87,8 @@ Common limits of Windows event loops:
:class:`SelectorEventLoop` specific limits:
:class:`SelectorEventLoop` specific limits:
- :class:`~selectors.SelectSelector` is used but it only supports sockets
- :class:`~selectors.SelectSelector` is used which only supports sockets
and is limited to 512 sockets.
- :meth:`~BaseEventLoop.add_reader` and :meth:`~BaseEventLoop.add_writer` only
- :meth:`~BaseEventLoop.add_reader` and :meth:`~BaseEventLoop.add_writer` only
accept file descriptors of sockets
accept file descriptors of sockets
- Pipes are not supported
- Pipes are not supported
...
...
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