| /external/rust/crates/tokio/tests/ |
| D | macros_select.rs | 17 async fn sync_one_lit_expr_comma() { in sync_one_lit_expr_comma() 19 foo = async { 1 } => foo, in sync_one_lit_expr_comma() 26 async fn nested_one() { in nested_one() 28 foo = async { 1 } => tokio::select! { in nested_one() 29 bar = async { foo } => bar, in nested_one() 37 async fn sync_one_lit_expr_no_comma() { in sync_one_lit_expr_no_comma() 39 foo = async { 1 } => foo in sync_one_lit_expr_no_comma() 46 async fn sync_one_lit_expr_block() { in sync_one_lit_expr_block() 48 foo = async { 1 } => { foo } in sync_one_lit_expr_block() 55 async fn sync_one_await() { in sync_one_await() [all …]
|
| D | task_local_set.rs | 25 async fn local_current_thread_scheduler() { in local_current_thread_scheduler() 27 .run_until(async { in local_current_thread_scheduler() 28 task::spawn_local(async {}).await.unwrap(); in local_current_thread_scheduler() 35 async fn local_threadpool() { in local_threadpool() 43 .run_until(async { in local_threadpool() 45 task::spawn_local(async { in local_threadpool() 56 async fn localset_future_threadpool() { in localset_future_threadpool() 64 local.spawn_local(async move { in localset_future_threadpool() 72 async fn localset_future_timers() { in localset_future_timers() 77 local.spawn_local(async move { in localset_future_timers() [all …]
|
| D | macros_try_join.rs | 16 async fn sync_one_lit_expr_comma() { in sync_one_lit_expr_comma() 17 let foo = tokio::try_join!(async { ok(1) },); in sync_one_lit_expr_comma() 23 async fn sync_one_lit_expr_no_comma() { in sync_one_lit_expr_no_comma() 24 let foo = tokio::try_join!(async { ok(1) }); in sync_one_lit_expr_no_comma() 30 async fn sync_two_lit_expr_comma() { in sync_two_lit_expr_comma() 31 let foo = tokio::try_join!(async { ok(1) }, async { ok(2) },); in sync_two_lit_expr_comma() 37 async fn sync_two_lit_expr_no_comma() { in sync_two_lit_expr_no_comma() 38 let foo = tokio::try_join!(async { ok(1) }, async { ok(2) }); in sync_two_lit_expr_no_comma() 44 async fn two_await() { in two_await() 49 task::spawn(async { tokio::try_join!(async { rx1.await }, async { rx2.await }) }); in two_await() [all …]
|
| D | rt_metrics.rs | 31 rt.block_on(async { in num_idle_blocking_threads() 42 rt.block_on(async { in num_idle_blocking_threads() 87 handle.spawn(async { in remote_schedule_count() 101 handle.spawn(async { in remote_schedule_count() 117 rt.block_on(async { in worker_park_count() 125 rt.block_on(async { in worker_park_count() 140 rt.block_on(async { in worker_noop_count() 148 rt.block_on(async { in worker_noop_count() 166 rt.block_on(async { in worker_steal_count() 170 tokio::spawn(async move { in worker_steal_count() [all …]
|
| /external/python/cpython3/Lib/test/ |
| D | test_coroutines.py | 82 """async def foo(): 86 """async def foo(): 90 """async def foo(a=await something()): 94 """async def foo(a:await something()): 98 """async def foo(): 100 [i async for i in els] 103 """async def foo(): 108 """async def foo(): 111 async for b in els] 114 """async def foo(): [all …]
|
| D | test_contextlib_async.py | 13 """Decorator to turn an async function into a test case.""" 30 async def test_enter(self): 32 async def __aexit__(self, *args): 38 async with manager as context: 42 async def test_async_gen_propagates_generator_exit(self): 46 async def ctx(): 49 async def gen(): 50 async with ctx(): 56 async with ctx(): 57 async for val in gen(): [all …]
|
| D | test_asyncgen.py | 43 async def iterate(): 45 async for i in gen: 64 raise TypeError(f'{iterator!r} is not an async iterator') 69 async def anext_impl(): 86 code = '''async def foo(): 91 with self.assertRaisesRegex(SyntaxError, 'yield from.*inside async'): 95 code = '''async def foo(): 99 with self.assertRaisesRegex(SyntaxError, 'yield from.*inside async'): 103 code = '''async def foo(): 109 with self.assertRaisesRegex(SyntaxError, 'return.*value.*async gen'): [all …]
|
| /external/rust/crates/async-trait/tests/ |
| D | test.rs | 26 async fn selfvalue(self) in selfvalue() 32 async fn selfref(&self) {} in selfref() 34 async fn selfmut(&mut self) {} in selfmut() 36 async fn required() -> Self::Assoc; in required() 38 async fn elided_lifetime(_x: &str) {} in elided_lifetime() 40 async fn explicit_lifetime<'a>(_x: &'a str) {} in explicit_lifetime() 42 async fn generic_type_param<T: Send>(x: Box<T>) -> T { in generic_type_param() 46 async fn calls(&self) { in calls() 52 async fn calls_mut(&mut self) { in calls_mut() 63 async fn selfvalue(self) {} in selfvalue() [all …]
|
| /external/rust/crates/async-trait/ |
| D | README.md | 1 Async trait methods 4 …ge/github-dtolnay/async--trait-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="2… 5 …img.shields.io/crates/v/async-trait.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](… 6 …ields.io/badge/docs.rs-async--trait-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs" hei… 7 …s/workflow/status/dtolnay/async-trait/ci.yml?branch=master&style=for-the-badge" height="20">](http… 9 The initial round of stabilizations for the async/await language feature in Rust 10 1.39 did not include support for async fn in traits. Trying to include an async 15 async fn f() {} 20 error[E0706]: trait fns cannot be declared `async` 23 4 | async fn f() {} [all …]
|
| /external/mockito/src/test/java/org/mockitousage/verification/ |
| D | VerificationWithAfterTest.java | 21 import org.mockitoutil.async.AsyncTesting; 42 private AsyncTesting async = new AsyncTesting(); field in VerificationWithAfterTest 46 async.cleanUp(); in tearDown() 52 async.runAfter(10, callMock); in should_verify_with_after() 53 async.runAfter(1000, callMock); in should_verify_with_after() 62 async.runAfter(10, callMock); in should_verify_with_after_and_fail() 63 async.runAfter(40, callMock); in should_verify_with_after_and_fail() 77 async.runAfter(10, callMock); in should_verify_with_time_x() 78 async.runAfter(50, callMock); in should_verify_with_time_x() 79 async.runAfter(600, callMock); in should_verify_with_time_x() [all …]
|
| /external/rust/crates/async-trait/src/ |
| D | lib.rs | 1 …//github.com/dtolnay/async-trait) [![crates-io]](https://crates.io/crates/async-trait) [… 9 //! <h5>Type erasure for async trait methods</h5> 11 //! The initial round of stabilizations for the async/await language feature in 12 //! Rust 1.39 did not include support for async fn in traits. Trying to include 13 //! an async fn in a trait produces the following error: 17 //! async fn f() {} 22 //! error[E0706]: trait fns cannot be declared `async` 25 //! 4 | async fn f() {} 29 //! This crate provides an attribute macro to make async fn in traits work. 31 //! Please refer to [*why async fn in traits are hard*][hard] for a deeper [all …]
|
| /external/python/cpython3/Lib/unittest/test/ |
| D | test_async_case.py | 28 async def asyncSetUp(self): 33 async def test_func(self): 39 async def asyncTearDown(self): 52 async def on_cleanup1(self): 61 async def on_cleanup2(self): 87 async def asyncSetUp(self): 92 async def test_func(self): 95 async def asyncTearDown(self): 98 async def on_cleanup(self): 123 async def asyncSetUp(self): [all …]
|
| /external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/ |
| D | AwaitTest.kt | 14 val d = async { in <lambda>() 19 val d2 = async { in <lambda>() 39 val d = async(start = CoroutineStart.LAZY) { in <lambda>() 43 val d2 = async(start = CoroutineStart.LAZY) { in <lambda>() 53 val d1 = async { 1L } in <lambda>() 54 val d2 = async { "" } in <lambda>() 55 val d3 = async { } in <lambda>() 65 val d = async { in <lambda>() 70 val d2 = async(NonCancellable) { in <lambda>() 75 val d3 = async { in <lambda>() [all …]
|
| D | AsyncTest.kt | 17 val d = async { in <lambda>() 33 val d = async(start = CoroutineStart.UNDISPATCHED) { in testUndispatched() 46 val d = async<Unit> { in <lambda>() 57 val d = async(NonCancellable, start = CoroutineStart.ATOMIC) { in <lambda>() 74 val deferred = async(Job()) { in <lambda>() 86 val deferred = async(NonCancellable) { in <lambda>() 87 val decomposed = async(NonCancellable) { in <lambda>() 103 val deferred = async(NonCancellable) { in <lambda>() 105 val decomposed = async { // inherits parent job! in <lambda>() 127 val deferred = async(NonCancellable) { in <lambda>() [all …]
|
| /external/python/pyee/tests/ |
| D | test_trio.py | 15 async def test_trio_emit(): 20 async with TrioEventEmitter() as ee: 25 async def event_handler(): 39 async def test_trio_once_emit(): 44 async with TrioEventEmitter() as ee: 48 async def event_handler(): 62 async def test_trio_error(): 67 async with TrioEventEmitter() as ee: 71 async def event_handler(): 75 async def handle_error(exc): [all …]
|
| /external/python/jinja/src/jinja2/ |
| D | asyncsupport.py | 1 """The code for async support. Importing this patches Jinja.""" 15 async def concat_async(async_gen): 18 async def collect(): 19 async for event in async_gen: 26 async def generate_async(self, *args, **kwargs): 29 async for event in self.root_render_func(self.new_context(vars)): 52 async def render_async(self, *args, **kwargs): 54 raise RuntimeError("The environment was not created with async mode enabled.") 77 async def async_call(self): 94 async def async_invoke(self, arguments, autoescape): [all …]
|
| /external/chromium-trace/catapult/third_party/polymer/components/iron-menu-behavior/test/ |
| D | iron-menu-behavior.html | 169 Polymer.Base.async(function() { 180 Polymer.Base.async(function() { 192 Polymer.Base.async(function() { 203 // Wait for async focus 204 Polymer.Base.async(function() { 208 Polymer.Base.async(function() { 220 // Wait for async focus 221 Polymer.Base.async(function() { 225 Polymer.Base.async(function() { 238 // Wait for async focus [all …]
|
| /external/python/cpython3/Lib/test/test_asyncio/ |
| D | test_locks.py | 24 async def test_repr(self): 33 async def test_lock(self): 49 async def test_lock_doesnt_accept_loop_parameter(self): 68 async def test_lock_by_with_statement(self): 93 async def test_acquire(self): 99 async def c1(result): 104 async def c2(result): 109 async def c3(result): 144 async def test_acquire_cancel(self): 154 async def test_cancel_race(self): [all …]
|
| /external/rust/crates/futures/tests/ |
| D | async_await_macros.rs | 14 let pending_once = async { pending!() }; in poll_and_pending() 15 block_on(async { in poll_and_pending() 27 let fut = async { in join() 32 block_on(async { in join() 48 block_on(async { in select() 66 block_on(async { in select_biased() 86 block_on(async { in select_streams() 130 block_on(async { in select_can_move_uncompleted_futures() 151 let res = block_on(async { in select_nested() 166 let fut = async { in select_size() [all …]
|
| /external/rust/crates/tracing-attributes/tests/ |
| D | async_fn.rs | 9 async fn test_async_fn(polls: usize) -> Result<(), ()> { in test_async_fn() 16 // instrumented async fn (see https://github.com/tokio-rs/tracing/issues/1615) 19 async fn test_ret_impl_trait(n: i32) -> Result<impl Iterator<Item = i32>, ()> { in test_ret_impl_trait() 25 // instrumented async fn (see https://github.com/tokio-rs/tracing/issues/1615) 28 async fn test_ret_impl_trait_err(n: i32) -> Result<impl Iterator<Item = i32>, &'static str> { in test_ret_impl_trait_err() 33 async fn test_async_fn_empty() {} in test_async_fn_empty() 39 async fn repro_async_2294() { in repro_async_2294() 50 async fn repro_1613(var: bool) { in repro_1613() 61 async fn repro_1613_2() { in repro_1613_2() 71 Box::pin(async move {}) in repro_1831() [all …]
|
| /external/perfetto/ui/src/test/ |
| D | ui_integrationtest.ts | 34 async function getPage(): Promise<Page> { 41 beforeAll(async () => { 54 afterEach(async () => { 75 beforeAll(async () => { 81 test('load', async () => { 88 test('expand_camera', async () => { 101 beforeAll(async () => { 107 test('load', async () => { 115 test('expand_browser_proc', async () => { 122 test('select_slice_with_flows', async () => { [all …]
|
| /external/jackson-core/docs/javadoc/2.9/com/fasterxml/jackson/core/async/class-use/ |
| D | NonBlockingInputFeeder.html | 7 <title>Uses of Interface com.fasterxml.jackson.core.async.NonBlockingInputFeeder (Jackson-core 2.9.… 16 …parent.document.title="Uses of Interface com.fasterxml.jackson.core.async.NonBlockingInputFeeder (… 37 …../../com/fasterxml/jackson/core/async/NonBlockingInputFeeder.html" title="interface in com.faster… 51 <li><a href="../../../../../../index.html?com/fasterxml/jackson/core/async/class-use/NonBlockingInp… 74 … com.fasterxml.jackson.core.async.NonBlockingInputFeeder" class="title">Uses of Interface<br>com.f… 80 …../../com/fasterxml/jackson/core/async/NonBlockingInputFeeder.html" title="interface in com.faster… 99 <td class="colFirst"><a href="#com.fasterxml.jackson.core.async">com.fasterxml.jackson.core.async</… 106 …="colFirst"><a href="#com.fasterxml.jackson.core.json.async">com.fasterxml.jackson.core.json.async… 108 <div class="block">Non-blocking ("async") JSON parser implementation.</div> 119 …../../com/fasterxml/jackson/core/async/NonBlockingInputFeeder.html" title="interface in com.faster… [all …]
|
| /external/jackson-core/docs/javadoc/2.11/com/fasterxml/jackson/core/async/class-use/ |
| D | NonBlockingInputFeeder.html | 7 <title>Uses of Interface com.fasterxml.jackson.core.async.NonBlockingInputFeeder (Jackson-core 2.11… 16 …parent.document.title="Uses of Interface com.fasterxml.jackson.core.async.NonBlockingInputFeeder (… 37 …../../com/fasterxml/jackson/core/async/NonBlockingInputFeeder.html" title="interface in com.faster… 51 <li><a href="../../../../../../index.html?com/fasterxml/jackson/core/async/class-use/NonBlockingInp… 74 … com.fasterxml.jackson.core.async.NonBlockingInputFeeder" class="title">Uses of Interface<br>com.f… 80 …../../com/fasterxml/jackson/core/async/NonBlockingInputFeeder.html" title="interface in com.faster… 99 <td class="colFirst"><a href="#com.fasterxml.jackson.core.async">com.fasterxml.jackson.core.async</… 106 …="colFirst"><a href="#com.fasterxml.jackson.core.json.async">com.fasterxml.jackson.core.json.async… 108 <div class="block">Non-blocking ("async") JSON parser implementation.</div> 119 …../../com/fasterxml/jackson/core/async/NonBlockingInputFeeder.html" title="interface in com.faster… [all …]
|
| /external/jackson-core/docs/javadoc/2.11.rc1/com/fasterxml/jackson/core/async/class-use/ |
| D | NonBlockingInputFeeder.html | 7 <title>Uses of Interface com.fasterxml.jackson.core.async.NonBlockingInputFeeder (Jackson-core 2.11… 16 …parent.document.title="Uses of Interface com.fasterxml.jackson.core.async.NonBlockingInputFeeder (… 37 …../../com/fasterxml/jackson/core/async/NonBlockingInputFeeder.html" title="interface in com.faster… 51 <li><a href="../../../../../../index.html?com/fasterxml/jackson/core/async/class-use/NonBlockingInp… 74 … com.fasterxml.jackson.core.async.NonBlockingInputFeeder" class="title">Uses of Interface<br>com.f… 80 …../../com/fasterxml/jackson/core/async/NonBlockingInputFeeder.html" title="interface in com.faster… 99 <td class="colFirst"><a href="#com.fasterxml.jackson.core.async">com.fasterxml.jackson.core.async</… 106 …="colFirst"><a href="#com.fasterxml.jackson.core.json.async">com.fasterxml.jackson.core.json.async… 108 <div class="block">Non-blocking ("async") JSON parser implementation.</div> 119 …../../com/fasterxml/jackson/core/async/NonBlockingInputFeeder.html" title="interface in com.faster… [all …]
|
| /external/jackson-core/docs/javadoc/2.10/com/fasterxml/jackson/core/async/class-use/ |
| D | NonBlockingInputFeeder.html | 7 <title>Uses of Interface com.fasterxml.jackson.core.async.NonBlockingInputFeeder (Jackson-core 2.10… 16 …parent.document.title="Uses of Interface com.fasterxml.jackson.core.async.NonBlockingInputFeeder (… 37 …../../com/fasterxml/jackson/core/async/NonBlockingInputFeeder.html" title="interface in com.faster… 51 <li><a href="../../../../../../index.html?com/fasterxml/jackson/core/async/class-use/NonBlockingInp… 74 … com.fasterxml.jackson.core.async.NonBlockingInputFeeder" class="title">Uses of Interface<br>com.f… 80 …../../com/fasterxml/jackson/core/async/NonBlockingInputFeeder.html" title="interface in com.faster… 99 <td class="colFirst"><a href="#com.fasterxml.jackson.core.async">com.fasterxml.jackson.core.async</… 106 …="colFirst"><a href="#com.fasterxml.jackson.core.json.async">com.fasterxml.jackson.core.json.async… 108 <div class="block">Non-blocking ("async") JSON parser implementation.</div> 119 …../../com/fasterxml/jackson/core/async/NonBlockingInputFeeder.html" title="interface in com.faster… [all …]
|