• Home
  • Raw
  • Download

Lines Matching full:async

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()
74 // This replicates the pattern used to implement async trait methods on nightly using the
81 async { Ok(()) } in repro_1831_2()
97 block_on_future(async { test_async_fn(2).await }).unwrap(); in async_fn_only_enters_for_polls()
105 async fn test_async_fns_nested() { in async_fn_nested()
110 async fn test_async_fns_nested_other() { in async_fn_nested()
130 block_on_future(async { test_async_fns_nested().await }); in async_fn_nested()
141 // (function name, functions parameters) when async-trait is used in async_fn_with_async_trait()
144 async fn foo(&mut self, v: usize); in async_fn_with_async_trait()
147 // test nesting of async fns with aync-trait in async_fn_with_async_trait()
150 async fn bar(&self); in async_fn_with_async_trait()
153 // test skip(self) with async-await in async_fn_with_async_trait()
156 async fn baz(&self); in async_fn_with_async_trait()
165 async fn foo(&mut self, v: usize) { in async_fn_with_async_trait()
175 async fn bar(&self) { in async_fn_with_async_trait()
183 async fn baz(&self) { in async_fn_with_async_trait()
215 block_on_future(async { test.foo(5).await }); in async_fn_with_async_trait()
227 async fn call(&mut self, v: usize); in async_fn_with_async_trait_and_fields_expressions()
243 async fn call(&mut self, _v: usize) {} in async_fn_with_async_trait_and_fields_expressions()
264 block_on_future(async { TestImpl.call(5).await }); in async_fn_with_async_trait_and_fields_expressions()
276 async fn call(); in async_fn_with_async_trait_and_fields_expressions_with_generic_parameter()
277 async fn call_with_self(&self); in async_fn_with_async_trait_and_fields_expressions_with_generic_parameter()
278 async fn call_with_mut_self(&mut self); in async_fn_with_async_trait_and_fields_expressions_with_generic_parameter()
285 // async-trait (>= 0.1.44) functions in async_fn_with_async_trait_and_fields_expressions_with_generic_parameter()
290 Box::pin(async move { in async_fn_with_async_trait_and_fields_expressions_with_generic_parameter()
300 async fn call() {} in async_fn_with_async_trait_and_fields_expressions_with_generic_parameter()
303 async fn call_with_self(&self) { in async_fn_with_async_trait_and_fields_expressions_with_generic_parameter()
308 async fn call_with_mut_self(&mut self) {} in async_fn_with_async_trait_and_fields_expressions_with_generic_parameter()
349 block_on_future(async { in async_fn_with_async_trait_and_fields_expressions_with_generic_parameter()
373 Box::pin(async move { in out_of_scope_fields()
390 block_on_future(async { in out_of_scope_fields()
406 async { in manual_impl_future()
425 block_on_future(async { in manual_impl_future()
437 Box::pin(async { in manual_box_pin()
456 block_on_future(async { in manual_box_pin()