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
e55de2d7
Kaydet (Commit)
e55de2d7
authored
May 29, 2018
tarafından
Mandeep Singh
Kaydeden (comit)
Yury Selivanov
May 29, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-30935: update get_event_loop docs (GH-2731)
üst
4fadf0c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
asyncio-eventloops.rst
Doc/library/asyncio-eventloops.rst
+4
-1
3.6.rst
Doc/whatsnew/3.6.rst
+1
-1
No files found.
Doc/library/asyncio-eventloops.rst
Dosyayı görüntüle @
e55de2d7
...
@@ -176,12 +176,15 @@ An event loop policy must implement the following interface:
...
@@ -176,12 +176,15 @@ An event loop policy must implement the following interface:
Get the event loop for the current context.
Get the event loop for the current context.
Returns an event loop object implementing the :class:`AbstractEventLoop`
Returns an event loop object implementing the :class:`AbstractEventLoop`
interface.
interface. In case called from coroutine, it returns the currently
running event loop.
Raises an exception in case no event loop has been set for the current
Raises an exception in case no event loop has been set for the current
context and the current policy does not specify to create one. It must
context and the current policy does not specify to create one. It must
never return ``None``.
never return ``None``.
.. versionchanged:: 3.6
.. method:: set_event_loop(loop)
.. method:: set_event_loop(loop)
Set the event loop for the current context to *loop*.
Set the event loop for the current context to *loop*.
...
...
Doc/whatsnew/3.6.rst
Dosyayı görüntüle @
e55de2d7
...
@@ -819,7 +819,7 @@ Notable changes in the :mod:`asyncio` module since Python 3.5.0
...
@@ -819,7 +819,7 @@ Notable changes in the :mod:`asyncio` module since Python 3.5.0
(all backported to 3.5.x due to the provisional status):
(all backported to 3.5.x due to the provisional status):
* The :func:`~asyncio.get_event_loop` function has been changed to
* The :func:`~asyncio.get_event_loop` function has been changed to
always return the currently running loop when called from co
u
routines
always return the currently running loop when called from coroutines
and callbacks.
and callbacks.
(Contributed by Yury Selivanov in :issue:`28613`.)
(Contributed by Yury Selivanov in :issue:`28613`.)
...
...
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