Home
last modified time | relevance | path

Searched refs:coroutine (Results 1 – 25 of 61) sorted by relevance

123

/external/python/cpython3/Doc/library/
Dasyncio-task.rst13 The :keyword:`async def` type of coroutine was added in Python 3.5, and
16 Generator-based coroutines should be decorated with :func:`@asyncio.coroutine
17 <asyncio.coroutine>`, although this is not strictly enforced.
23 The word "coroutine", like the word "generator", is used for two
26 - The function that defines a coroutine
28 decorated with ``@asyncio.coroutine``). If disambiguation is needed
29 we will call this a *coroutine function* (:func:`iscoroutinefunction`
32 - The object obtained by calling a coroutine function. This object
35 call it a *coroutine object* (:func:`iscoroutine` returns ``True``).
37 Things a coroutine can do:
[all …]
Dasyncio-sync.rst35 particular coroutine when locked. A primitive lock is in one of two states,
41 until a call to release() in another coroutine changes it to unlocked, then
47 When more than one coroutine is blocked in acquire() waiting for the state
48 to turn to unlocked, only one coroutine proceeds when a release() call
49 resets the state to unlocked; first coroutine which is blocked in acquire()
52 :meth:`acquire` is a coroutine and should be called with ``yield from``.
95 This method is a :ref:`coroutine <coroutine>`.
145 Otherwise, block until another coroutine calls :meth:`set` to set the
148 This method is a :ref:`coroutine <coroutine>`.
161 coroutine.
[all …]
Dasyncio-dev.rst35 <asyncio-coroutine-not-scheduled>`
77 @coroutine
112 To schedule a coroutine object from a different thread, the
173 .. _asyncio-coroutine-not-scheduled:
175 Detect coroutine objects never scheduled
178 When a coroutine function is called and its result is not passed to
180 the execution of the coroutine object will never be scheduled which is
188 @asyncio.coroutine
202 :meth:`AbstractEventLoop.create_task` method with the coroutine object.
222 @asyncio.coroutine
[all …]
Dasyncio-stream.rst6 Streams (coroutine based API)
36 This function is a :ref:`coroutine <coroutine>`.
47 either be a plain callback function or a :ref:`coroutine function
48 <coroutine>`; if it is a coroutine function, it will be automatically
60 This function is a :ref:`coroutine <coroutine>`.
70 This function is a :ref:`coroutine <coroutine>`.
81 This function is a :ref:`coroutine <coroutine>`.
122 This method is a :ref:`coroutine <coroutine>`.
134 This method is a :ref:`coroutine <coroutine>`.
143 This method is a :ref:`coroutine <coroutine>`.
[all …]
Dasyncio-eventloop.rst56 If the argument is a :ref:`coroutine object <coroutine>`, it is wrapped by
229 Schedule the execution of a :ref:`coroutine object <coroutine>`: wrap it in
250 event loop, *coro* will be a coroutine object. The callable
273 This method is a :ref:`coroutine <coroutine>` which will try to
275 coroutine returns a ``(transport, protocol)`` pair.
288 #. The coroutine returns successfully with the ``(transport, protocol)``
347 This method is a :ref:`coroutine <coroutine>` which will try to
349 coroutine returns a ``(transport, protocol)`` pair.
398 This method is a :ref:`coroutine <coroutine>` which will try to
400 coroutine returns a ``(transport, protocol)`` pair.
[all …]
Dasyncio-queue.rst56 This method is a :ref:`coroutine <coroutine>`.
79 This method is a :ref:`coroutine <coroutine>`.
88 This method is a :ref:`coroutine <coroutine>`.
Dcollections.abc.rst187 :func:`types.coroutine` or :func:`asyncio.coroutine`) are
196 ABC for coroutine compatible classes. These implement the
197 following methods, defined in :ref:`coroutine-objects`:
198 :meth:`~coroutine.send`, :meth:`~coroutine.throw`, and
199 :meth:`~coroutine.close`. Custom implementations must also implement
201 :class:`Awaitable`. See also the definition of :term:`coroutine`.
205 :func:`types.coroutine` or :func:`asyncio.coroutine`) are
Dasyncio-subprocess.rst40 This function is a :ref:`coroutine <coroutine>`.
59 This function is a :ref:`coroutine <coroutine>`.
115 This method is a :ref:`coroutine <coroutine>`.
142 This method is a :ref:`coroutine <coroutine>`.
204 This method is a :ref:`coroutine <coroutine>`.
232 This method is a :ref:`coroutine <coroutine>`.
348 @asyncio.coroutine
394 @asyncio.coroutine
Dtypes.rst101 The type of :term:`coroutine` objects, created by
303 .. function:: coroutine(gen_func)
306 :term:`coroutine function` which returns a generator-based coroutine.
307 The generator-based coroutine is still a :term:`generator iterator`,
308 but is also considered to be a :term:`coroutine` object and is
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_tasks.py38 @asyncio.coroutine
99 @asyncio.coroutine
111 @asyncio.coroutine
122 @asyncio.coroutine
139 @asyncio.coroutine
177 @asyncio.coroutine
206 @asyncio.coroutine
229 @asyncio.coroutine
233 @asyncio.coroutine
249 @asyncio.coroutine
[all …]
Dtest_queues.py39 @asyncio.coroutine
52 @asyncio.coroutine
128 @asyncio.coroutine
135 @asyncio.coroutine
163 @asyncio.coroutine
195 @asyncio.coroutine
203 @asyncio.coroutine
239 @asyncio.coroutine
243 @asyncio.coroutine
278 @asyncio.coroutine
[all …]
Dtest_locks.py43 @asyncio.coroutine
54 @asyncio.coroutine
72 @asyncio.coroutine
78 @asyncio.coroutine
84 @asyncio.coroutine
148 @asyncio.coroutine
195 @asyncio.coroutine
207 @asyncio.coroutine
275 @asyncio.coroutine
280 @asyncio.coroutine
[all …]
Dtest_subprocess.py84 @asyncio.coroutine
111 @asyncio.coroutine
176 @asyncio.coroutine
204 @asyncio.coroutine
228 @asyncio.coroutine
238 @asyncio.coroutine
273 @asyncio.coroutine
292 @asyncio.coroutine
313 @asyncio.coroutine
337 @asyncio.coroutine
[all …]
/external/python/cpython3/Lib/asyncio/
Dstreams.py18 from .coroutines import coroutine
50 @coroutine
80 @coroutine
119 @coroutine
132 @coroutine
201 @coroutine
311 @coroutine
434 @coroutine
462 @coroutine
494 @coroutine
[all …]
Dlocks.py10 from .coroutines import coroutine
53 @coroutine
77 @coroutine
84 @coroutine
162 @coroutine
250 @coroutine
306 @coroutine
340 @coroutine
431 @coroutine
Dsubprocess.py9 from .coroutines import coroutine
124 @coroutine
140 @coroutine
158 @coroutine
162 @coroutine
180 @coroutine
200 @coroutine
213 @coroutine
Dqueues.py11 from .coroutines import coroutine
120 @coroutine
155 @coroutine
208 @coroutine
Dbase_events.py37 from .coroutines import coroutine
224 @coroutine
335 @coroutine
376 @coroutine
679 @coroutine
811 @coroutine
835 @coroutine
957 @coroutine
966 @coroutine
1070 @coroutine
[all …]
Dtasks.py20 from .coroutines import coroutine
278 @coroutine
315 @coroutine
361 @coroutine
446 @coroutine
462 @coroutine
523 @coroutine
Dwindows_events.py18 from .coroutines import coroutine
314 @coroutine
323 @coroutine
370 @coroutine
485 @coroutine
539 @coroutine
/external/libcxx/include/experimental/
Dcoroutine2 //===----------------------------- coroutine -----------------------------===//
15 experimental/coroutine synopsis
23 // 18.11.1 coroutine traits
26 // 18.11.2 coroutine handle
64 _LIBCPP_WARNING("<experimental/coroutine> cannot be used with this compiler")
66 # warning <experimental/coroutine> cannot be used with this compiler
122 "resume() has undefined behavior when the coroutine is done");
248 "pointers to the coroutine's promise type; use 'from_promise' instead");
/external/python/cpython3/Doc/c-api/
Dcoro.rst16 The C structure used for coroutine objects.
21 The type object corresponding to coroutine objects.
31 Create and return a new coroutine object based on the *frame* object,
/external/python/cpython3/Lib/test/
Dtest_coroutines.py555 @types.coroutine
576 @types.coroutine
604 @types.coroutine
625 @types.coroutine
686 @types.coroutine
720 @types.coroutine
751 async def coroutine(): function
754 coro = coroutine()
774 async def coroutine(): function
777 coro = coroutine()
[all …]
Dtest_types.py1218 types.coroutine(sample)
1221 @types.coroutine
1230 @types.coroutine
1236 foo = types.coroutine(foo)
1246 decorated_foo = types.coroutine(foo)
1254 bar = types.coroutine(bar)
1268 @types.coroutine
1284 @types.coroutine
1306 @types.coroutine
1387 @types.coroutine
[all …]
/external/python/cpython2/Demo/threads/
DCoroutine.py130 for coroutine in self.invokedby.keys():
131 coroutine.resume()

123