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
805e27ef
Unverified
Kaydet (Commit)
805e27ef
authored
Eyl 14, 2018
tarafından
Yury Selivanov
Kaydeden (comit)
GitHub
Eyl 14, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-33649: Fix asyncio-dev (GH-9324)
üst
afde1c1a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
23 deletions
+28
-23
asyncio-api-index.rst
Doc/library/asyncio-api-index.rst
+6
-6
asyncio-dev.rst
Doc/library/asyncio-dev.rst
+0
-0
asyncio-eventloop.rst
Doc/library/asyncio-eventloop.rst
+5
-0
asyncio-future.rst
Doc/library/asyncio-future.rst
+10
-4
asyncio.rst
Doc/library/asyncio.rst
+3
-10
ipc.rst
Doc/library/ipc.rst
+4
-3
No files found.
Doc/library/asyncio-api-index.rst
Dosyayı görüntüle @
805e27ef
...
...
@@ -15,7 +15,7 @@ Utilities to run asyncio programs, create Tasks, and
await on multiple things with timeouts.
.. list-table::
:widths:
30 7
0
:widths:
50 5
0
* - :func:`run`
- Create event loop, run a coroutine, close the loop.
...
...
@@ -71,7 +71,7 @@ implement connection pools, and pub/sub patterns.
.. list-table::
:widths:
30 7
0
:widths:
50 5
0
* - :class:`Queue`
- A FIFO queue.
...
...
@@ -97,7 +97,7 @@ Subprocesses
Utilities to spawn subprocesses and run shell commands.
.. list-table::
:widths:
30 7
0
:widths:
50 5
0
* - ``await`` :func:`create_subprocess_exec`
- Create a subprocess.
...
...
@@ -120,7 +120,7 @@ Streams
High-level APIs to work with network IO.
.. list-table::
:widths:
30 7
0
:widths:
50 5
0
* - ``await`` :func:`open_connection`
- Establish a TCP connection.
...
...
@@ -155,7 +155,7 @@ Synchronization
Threading-like synchronization primitives that can be used in Tasks.
.. list-table::
:widths:
30 7
0
:widths:
50 5
0
* - :class:`Lock`
- A mutex lock.
...
...
@@ -185,7 +185,7 @@ Exceptions
==========
.. list-table::
:widths:
30 7
0
:widths:
50 5
0
* - :exc:`asyncio.TimeoutError`
...
...
Doc/library/asyncio-dev.rst
Dosyayı görüntüle @
805e27ef
This diff is collapsed.
Click to expand it.
Doc/library/asyncio-eventloop.rst
Dosyayı görüntüle @
805e27ef
...
...
@@ -1075,6 +1075,11 @@ Enabling debug mode
Set the debug mode of the event loop.
.. versionchanged:: 3.7
The new ``-X dev`` command line option can now also be used
to enable the debug mode.
.. seealso::
The :ref:`debug mode of asyncio <asyncio-debug-mode>`.
...
...
Doc/library/asyncio-future.rst
Dosyayı görüntüle @
805e27ef
...
...
@@ -121,6 +121,16 @@ Future Object
or an exception set with :meth:`set_result` or
:meth:`set_exception` calls.
.. method:: cancelled()
Return ``True`` if the Future was *cancelled*.
The method is usually used to check if a Future is not
*cancelled* before setting a result or an exception for it::
if not fut.cancelled():
fut.set_result(42)
.. method:: add_done_callback(callback, *, context=None)
Add a callback to be run when the Future is *done*.
...
...
@@ -180,10 +190,6 @@ Future Object
.. versionadded:: 3.7
.. method:: cancelled()
Return ``True`` if the Future was *cancelled*.
This example creates a Future object, creates and schedules an
asynchronous Task to set result for the Future, and waits until
...
...
Doc/library/asyncio.rst
Dosyayı görüntüle @
805e27ef
...
...
@@ -32,8 +32,9 @@ asyncio provides a set of **high-level** APIs to:
as well as **low-level** APIs for *library and framework developers* to:
* create and manage :ref:`event loops <asyncio-event-loop>`, which
provide asynchronous APIs for networking, subprocesses, OS signals,
etc;
provide asynchronous APIs for :meth:`networking <loop.create_server>`,
running :meth:`subprocesses <loop.subprocess_exec>`,
handling :meth:`OS signals <loop.add_signal_handler>`, etc;
* implement efficient protocols using
:ref:`transports <asyncio-transports-protocols>`;
...
...
@@ -75,11 +76,3 @@ Reference
asyncio-api-index.rst
asyncio-dev.rst
.. seealso::
The :mod:`asyncio` module was proposed in :PEP:`3156`.
Since the acceptance of the PEP many new APIs were added and many
original APIs were altered. The PEP should be treated as a
historical document.
Doc/library/ipc.rst
Dosyayı görüntüle @
805e27ef
.. _ipc:
*****************************************
Interprocess Communication and Networking
Networking and Interprocess Communication
*****************************************
The modules described in this chapter provide mechanisms for
different processes
to communicate
.
The modules described in this chapter provide mechanisms for
networking and inter-processes communication
.
Some modules only work for two processes that are on the same machine, e.g.
:mod:`signal` and :mod:`mmap`. Other modules support networking protocols
...
...
@@ -15,6 +15,7 @@ The list of modules described in this chapter is:
.. toctree::
:maxdepth: 1
asyncio.rst
socket.rst
...
...
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