HomeSort by relevance Sort by last modified time
    Searched defs:coro (Results 1 - 11 of 11) sorted by null

  /external/python/cpython3/Lib/asyncio/
coroutines.py 71 coro = yield_from_gen(gen)
72 next(coro)
73 coro.send(value)
206 coro = func
209 def coro(*args, **kw): function in function:coroutine
228 wrapper = coro
230 wrapper = _types_coroutine(coro)
234 w = CoroWrapper(coro(*args, **kwds), func=func)
273 def _format_coroutine(coro):
274 assert iscoroutine(coro)
    [all...]
  /external/python/cpython3/Lib/test/test_asyncio/
test_pep492.py 127 coro = func()
128 self.assertEqual(coro.send(None), 'spam')
129 coro.close()
185 async def coro(): function in function:CoroutineTests.test_types_coroutine
190 data = self.loop.run_until_complete(coro())
215 coro = afunc()
216 t = asyncio.Task(coro, loop=self.loop)
219 await coro
test_futures.py 306 def coro(): function in function:BaseFutureTests.test_iter
310 arg1, arg2 = coro()
test_base_events.py 760 def coro(): function in function:BaseEventLoopTests.test_set_task_factory
763 factory = lambda loop, coro: MyTask(coro, loop=loop)
769 task = self.loop.create_task(coro())
776 task = self.loop.create_task(coro())
813 def create_task(self, coro):
814 return MyTask(coro, loop=loop)
819 coro = test()
820 task = asyncio.ensure_future(coro, loop=loop)
825 coro.close(
    [all...]
test_tasks.py 63 return ('coro=<%s() %s at %s> created at %s:%s'
66 return 'coro=<%s() %s at %s>' % (qualname, state, src)
83 def new_task(self, loop, coro):
84 return self.__class__.Task(coro, loop=loop)
201 def __init__(self, coro):
202 self.coro = coro
204 return (yield from self.coro)
207 def coro(): function in function:BaseTaskTests.test_ensure_future_awaitable
212 fut = asyncio.ensure_future(Aw(coro()), loop=loop
669 def coro(): function in function:BaseTaskTests.test_wait_for_blocking
779 def coro(s): function in function:BaseTaskTests.test_wait_duplicate_coroutines
1163 def coro(s): function in function:BaseTaskTests.test_as_completed_duplicate_coroutines
1266 def coro(): function in function:BaseTaskTests.test_task_cancel_waiter_future
1410 def coro(): function in function:BaseTaskTests.test_yield_vs_yield_from_generator
1447 def coro(): function in function:BaseTaskTests.test_coroutine_non_gen_function_return_future
1462 def coro(loop): function in function:BaseTaskTests.test_current_task
1689 def coro(): function in function:BaseTaskTests.test_corowrapper_mocks_generator.check
1994 def coro(): function in function:BaseTaskTests.test_error_in_call_soon
2333 def coro(fut=fut): function in function:CoroutineGatherTests.wrap_futures
2340 def coro(): function in function:CoroutineGatherTests.test_constructor_loop_selection
2357 def coro(s): function in function:CoroutineGatherTests.test_duplicate_coroutines
2534 def coro(): function in function:SleepTests.test_sleep_zero
    [all...]
  /external/clang/test/SemaCXX/
coroutines.cpp 29 template<typename Promise> struct coro {}; struct
31 struct std::coroutine_traits<coro<Promise>, Ps...> {
228 coro<bad_promise_1> missing_get_return_object() { // expected-error {{no member named 'get_return_object' in 'bad_promise_1'}}
233 coro<bad_promise_2> get_return_object();
237 coro<bad_promise_2> missing_initial_suspend() { // expected-error {{no member named 'initial_suspend' in 'bad_promise_2'}}
242 coro<bad_promise_3> get_return_object();
246 coro<bad_promise_3> missing_final_suspend() { // expected-error {{no member named 'final_suspend' in 'bad_promise_3'}}
251 coro<bad_promise_4> get_return_object();
256 coro<bad_promise_4> bad_initial_suspend() { // expected-error {{no member named 'await_ready' in 'not_awaitable'}}
261 coro<bad_promise_5> get_return_object()
    [all...]
  /external/python/cpython3/Modules/clinic/
_asynciomodule.c.h 232 "Task(coro, *, loop=None)\n"
238 _asyncio_Task___init___impl(TaskObj *self, PyObject *coro, PyObject *loop);
244 static const char * const _keywords[] = {"coro", "loop", NULL};
246 PyObject *coro; local
250 &coro, &loop)) {
253 return_value = _asyncio_Task___init___impl((TaskObj *)self, coro, loop);
  /external/python/cpython3/Lib/test/
test_coroutines.py 28 def run_async(coro):
29 assert coro.__class__ in {types.GeneratorType, types.CoroutineType}
35 buffer.append(coro.send(None))
42 def run_async__await__(coro):
43 assert coro.__class__ is types.CoroutineType
44 aw = coro.__await__()
640 coro = foo()
641 aw = coro.__await__()
650 coro = foo()
651 aw = coro.__await__(
689 async def coro(): function in function:CoroutineTest.test_func_14
1026 async def coro(): function in function:CoroutineTest.test_await_12
    [all...]
test_types.py 1513 def coro(): function in function:CoroutineTests.test_wrapper_object
    [all...]
test_collections.py 517 def coro(): function in function:TestOneTrickPonyABCs.test_Awaitable
545 c = coro()
553 c.close() # awoid RuntimeWarning that coro() was not awaited
567 def coro(): function in function:TestOneTrickPonyABCs.test_Coroutine
595 c = coro()
603 c.close() # awoid RuntimeWarning that coro() was not awaited
    [all...]
  /external/python/cpython3/Modules/
_asynciomodule.c 1301 coro: 'O'
1922 PyObject *coro = task->task_coro; local
    [all...]

Completed in 494 milliseconds