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
3c3c4f5a
Kaydet (Commit)
3c3c4f5a
authored
Ara 02, 2013
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
asyncio: cleanup doc
üst
550a09ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
26 deletions
+40
-26
asyncio.rst
Doc/library/asyncio.rst
+40
-26
No files found.
Doc/library/asyncio.rst
Dosyayı görüntüle @
3c3c4f5a
...
...
@@ -92,10 +92,6 @@ Run an event loop
Run until :meth:`stop` is called.
.. method:: BaseEventLoop.run_in_executor(executor, callback, \*args)
XXX
.. method:: BaseEventLoop.run_until_complete(future)
Run until the :class:`Future` is done.
...
...
@@ -104,6 +100,10 @@ Run an event loop
Return the Future's result, or raise its exception.
.. method:: BaseEventLoop.is_running()
Returns running status of event loop.
.. method:: stop()
Stop running the event loop.
...
...
@@ -119,10 +119,6 @@ Run an event loop
This clears the queues and shuts down the executor, but does not wait for
the executor to finish.
.. method:: BaseEventLoop.is_running()
Returns running status of event loop.
Calls
^^^^^
...
...
@@ -137,16 +133,10 @@ Calls
Any positional arguments after the callback will be passed to the
callback when it is called.
.. method: BaseEventLoop.call_soon_threadsafe(callback, \*args)
.. method:
:
BaseEventLoop.call_soon_threadsafe(callback, \*args)
Like :meth:`call_soon`, but thread safe.
.. method:: BaseEventLoop.set_default_executor(executor)
XXX
Delayed calls
^^^^^^^^^^^^^
...
...
@@ -156,11 +146,6 @@ Which clock is used depends on the (platform-specific) event loop
implementation; ideally it is a monotonic clock. This will generally be
a different clock than :func:`time.time`.
.. method:: BaseEventLoop.time()
Return the current time, as a :class:`float` value, according to the
event loop's internal clock.
.. method:: BaseEventLoop.call_later(delay, callback, *args)
Arrange for the *callback* to be called after the given *delay*
...
...
@@ -186,9 +171,27 @@ a different clock than :func:`time.time`.
.. method:: BaseEventLoop.time()
Return the time according to the event loop's clock.
Return the current time, as a :class:`float` value, according to the
event loop's internal clock.
Executor
^^^^^^^^
Call a function in an :class:`~concurrent.futures.Executor` (pool of threads or
pool of processes). By default, an event loop uses a thread pool executor
(:class:`~concurrent.futures.ThreadPoolExecutor`).
.. method:: BaseEventLoop.run_in_executor(executor, callback, \*args)
Arrange for a callback to be called in the specified executor.
*executor* is a :class:`~concurrent.futures.Executor` instance,
the default executor is used if *executor* is ``None``.
.. method:: BaseEventLoop.set_default_executor(executor)
The clock :func:`time.monotonic` is used by default
.
Set the default executor used by :meth:`run_in_executor`
.
Creating listening connections
...
...
@@ -211,10 +214,15 @@ Creating listening connections
on the listening socket. Default value: ``True`` on POSIX systems,
``False`` on Windows.
This method returns a :ref:`coroutine <coroutine>`.
.. method:: BaseEventLoop.create_datagram_endpoint(protocol_factory, local_addr=None, remote_addr=None, \*, family=0, proto=0, flags=0)
XXX
This method returns a :ref:`coroutine <coroutine>`.
Creating connections
^^^^^^^^^^^^^^^^^^^^
...
...
@@ -285,10 +293,14 @@ Creating connections
XXX
This method returns a :ref:`coroutine <coroutine>`.
.. method:: BaseEventLoop.connect_write_pipe(protocol_factory, pipe)
XXX
This method returns a :ref:`coroutine <coroutine>`.
Resolve name
^^^^^^^^^^^^
...
...
@@ -305,21 +317,23 @@ Resolve name
Running subprocesses
^^^^^^^^^^^^^^^^^^^^
Run subprocesses asynchronously using the :mod:`subprocess` module.
.. method:: BaseEventLoop.subprocess_shell(protocol_factory, cmd, \*, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=False, shell=True, bufsize=0, \*\*kwargs)
XXX
This method returns a :ref:`coroutine <coroutine>`.
See the constructor of the :class:`subprocess.Popen` class for parameters.
.. method:: BaseEventLoop.subprocess_exec(protocol_factory, \*args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=False, shell=False, bufsize=0, \*\*kwargs)
XXX
See the constructor of the :class:`subprocess.Popen` class for parameters
.
This method returns a :ref:`coroutine <coroutine>`
.
.. seealso::
The :mod:`subprocess` module.
See the constructor of the :class:`subprocess.Popen` class for parameters.
.. _protocol:
...
...
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