/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.completion/ |
done.pass.cpp | 29 namespace coro = std::experimental; 32 void do_test(coro::coroutine_handle<Promise> const& H) { 42 do_test(coro::coroutine_handle<>{}); 43 do_test(coro::coroutine_handle<int>{});
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/ |
noop_coroutine.pass.cpp | 25 namespace coro = std::experimental::coroutines_v1; 28 static_assert(std::is_same<coro::coroutine_handle<coro::noop_coroutine_promise>, coro::noop_coroutine_handle>::value, ""); 29 static_assert(std::is_same<decltype(coro::noop_coroutine()), coro::noop_coroutine_handle>::value, ""); 50 auto h = coro::noop_coroutine(); 51 coro::coroutine_handle<> base = h; 68 assert(coro::coroutine_handle<>::from_address(h.address()) == base);
|
/external/libcxx/test/libcxx/experimental/language.support/support.coroutines/ |
dialect_support.sh.cpp | 22 namespace coro = std::experimental::coroutines_v1; 24 coro::suspend_always sa; 25 coro::suspend_never sn; 29 typedef coro::coroutine_handle<promise_type> HandleT; 30 coro::suspend_never initial_suspend() { return sn; } 31 coro::suspend_always final_suspend() { return sa; } 32 coro::suspend_never yield_value(int) { return sn; } 44 coro::coroutine_handle<promise_type> p;
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/ |
from_address.fail.cpp | 28 namespace coro = std::experimental; 33 using H = coro::coroutine_handle<>; 40 using H = coro::coroutine_handle<int>;
|
address.pass.cpp | 26 namespace coro = std::experimental; 49 do_test<coro::coroutine_handle<>>(); 50 do_test<coro::coroutine_handle<int>>();
|
from_address.pass.cpp | 24 namespace coro = std::experimental; 44 do_test<coro::coroutine_handle<>>(); 45 do_test<coro::coroutine_handle<int>>();
|
/external/python/cpython3/Lib/asyncio/ |
coroutines.py | 116 coro = func 119 def coro(*args, **kw): function in function:coroutine 135 coro = types.coroutine(coro) 137 wrapper = coro 141 w = CoroWrapper(coro(*args, **kwds), func=func) 189 def _format_coroutine(coro): 190 assert iscoroutine(coro) 192 is_corowrapper = isinstance(coro, CoroWrapper) 194 def get_name(coro) [all...] |
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/ |
promise.pass.cpp | 29 namespace coro = std::experimental; 35 coro::suspend_never initial_suspend() { return {}; } 36 coro::suspend_never final_suspend() { return {}; } 45 using CH = coro::coroutine_handle<promise_type>; 46 using CCH = coro::coroutine_handle<const promise_type>; 61 co_await coro::suspend_never{}; 65 void do_test(coro::coroutine_handle<Promise>&& H) { 81 do_test(coro::coroutine_handle<int>{}); 82 do_test(coro::coroutine_handle<const int>{});
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/ |
destroy.pass.cpp | 29 namespace coro = std::experimental; 42 void do_test(coro::coroutine_handle<Promise>&& H) { 43 using HType = coro::coroutine_handle<Promise>; 59 do_test(coro::coroutine_handle<>{}); 60 do_test(coro::coroutine_handle<int>{});
|
resume.pass.cpp | 30 namespace coro = std::experimental; 55 void do_test(coro::coroutine_handle<Promise>&& H) { 56 using HType = coro::coroutine_handle<Promise>; 78 do_test(coro::coroutine_handle<>{}); 79 do_test(coro::coroutine_handle<int>{});
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/ |
construct.pass.cpp | 25 namespace coro = std::experimental; 51 do_test<coro::coroutine_handle<>>(); 52 do_test<coro::coroutine_handle<int>>();
|
assign.pass.cpp | 24 namespace coro = std::experimental; 52 do_test<coro::coroutine_handle<>>(); 53 do_test<coro::coroutine_handle<int>>();
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.capacity/ |
operator_bool.pass.cpp | 26 namespace coro = std::experimental; 56 do_test<coro::coroutine_handle<>>(); 57 do_test<coro::coroutine_handle<int>>();
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/ |
void_handle.pass.cpp | 15 namespace coro = std::experimental; 41 using P = typename coro::coroutine_traits<T, Args...>::promise_type ;
|
/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/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/ |
equal_comp.pass.cpp | 29 namespace coro = std::experimental; 57 do_test<coro::coroutine_handle<>>(TC.first, TC.second); 58 do_test<coro::coroutine_handle<int>>(TC.first, TC.second);
|
less_comp.pass.cpp | 31 namespace coro = std::experimental; 66 do_test<coro::coroutine_handle<>>(TC.first, TC.second); 67 do_test<coro::coroutine_handle<int>>(TC.first, TC.second);
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/ |
hash.pass.cpp | 31 namespace coro = std::experimental; 60 do_test<coro::coroutine_handle<>>(TC.first, TC.second); 61 do_test<coro::coroutine_handle<int>>(TC.first, TC.second);
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.traits/ |
promise_type.pass.cpp | 15 namespace coro = std::experimental; 53 using Traits = coro::coroutine_traits<T, Args...>; 60 using Traits = coro::coroutine_traits<T, Args...>;
|
/external/python/cpython3/Lib/test/ |
test_coroutines.py | 30 def run_async(coro): 31 assert coro.__class__ in {types.GeneratorType, types.CoroutineType} 37 buffer.append(coro.send(None)) 44 def run_async__await__(coro): 45 assert coro.__class__ is types.CoroutineType 46 aw = coro.__await__() 538 coro = foo() 539 self.assertRegex(repr(coro), '^<coroutine object.* at 0x.*>$') 540 coro.close() 545 coro = foo( 730 async def coro(): function in function:CoroutineTest.test_func_14 1065 async def coro(): function in function:CoroutineTest.test_await_12 [all...] |
/external/python/cpython3/Lib/ |
types.py | 277 coro = func(*args, **kwargs) 278 if (coro.__class__ is CoroutineType or 279 coro.__class__ is GeneratorType and coro.gi_code.co_flags & 0x100): 280 # 'coro' is a native coroutine object or an iterable coroutine 281 return coro 282 if (isinstance(coro, _collections_abc.Generator) and 283 not isinstance(coro, _collections_abc.Coroutine)): 284 # 'coro' is either a pure Python generator iterator, or it 287 return _GeneratorWrapper(coro) [all...] |
/external/python/cpython3/Lib/test/test_asyncio/ |
test_tasks.py | 52 return ('coro=<%s() %s at %s> created at %s:%s' 55 return 'coro=<%s() %s at %s>' % (qualname, state, src) 86 def new_task(self, loop, coro): 87 return self.__class__.Task(coro, loop=loop) 217 def __init__(self, coro): 218 self.coro = coro 220 return (yield from self.coro) 223 def coro(): function in function:BaseTaskTests.test_ensure_future_awaitable 228 fut = asyncio.ensure_future(Aw(coro()), loop=loop 609 async def coro(): function in function:BaseTaskTests.test_cancel_awaited_task 665 async def coro(): function in function:BaseTaskTests.test_log_traceback 778 def coro(): function in function:BaseTaskTests.test_wait_for_blocking 942 def coro(s): function in function:BaseTaskTests.test_wait_duplicate_coroutines 1321 def coro(s): function in function:BaseTaskTests.test_as_completed_duplicate_coroutines 1424 def coro(): function in function:BaseTaskTests.test_task_cancel_waiter_future 1563 def coro(): function in function:BaseTaskTests.test_yield_vs_yield_from_generator 1600 def coro(): function in function:BaseTaskTests.test_coroutine_non_gen_function_return_future 1616 async def coro(loop): function in function:BaseTaskTests.test_current_task_deprecated 1638 async def coro(loop): function in function:BaseTaskTests.test_current_task 1850 def coro(): function in function:BaseTaskTests.test_corowrapper_mocks_generator.check 1961 async def coro(): function in function:BaseTaskTests.test_all_tasks_deprecated 2027 def coro(): function in function:BaseTaskTests.test_tb_logger_not_called_after_cancel 2211 def coro(): function in function:BaseTaskTests.test_error_in_call_soon 2243 def coro(): function in function:BaseTaskTests.test_create_task_with_oldstyle_coroutine 2258 async def coro(): function in function:BaseTaskTests.test_create_task_with_async_function 2287 async def coro(): function in function:BaseTaskTests.test_bare_create_task 2505 def coro(): function in function:CTask_CFuture_Tests.test_refleaks_in_task___init__ 2517 def coro(): function in function:CTask_CFuture_Tests.test_del__log_destroy_pending_segfault 2592 async def coro(): function in function:CTask_Future_Tests.test_foobar 2764 async def coro(): function in function:BaseCurrentLoopTests.test_current_task_with_implicit_loop 3006 def coro(fut=fut): function in function:CoroutineGatherTests.wrap_futures 3013 def coro(): function in function:CoroutineGatherTests.test_constructor_loop_selection 3030 def coro(s): function in function:CoroutineGatherTests.test_duplicate_coroutines 3213 def coro(): function in function:SleepTests.test_sleep_zero 3241 def coro(): function in function:CompatibilityTests.test_yield_from_awaitable [all...] |
/external/python/cpython3/Include/ |
warnings.h | 60 void _PyErr_WarnUnawaitedCoroutine(PyObject *coro);
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/ |
suspend_always.pass.cpp | 19 namespace coro = std::experimental; 37 using H = coro::coroutine_handle<>;
|
suspend_never.pass.cpp | 19 namespace coro = std::experimental; 39 using H = coro::coroutine_handle<>;
|