Lines Matching full:async
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()
64 async fn sync_one_ident() { in sync_one_ident()
75 async fn sync_two() { in sync_two()
81 foo = async { in sync_two()
85 bar = async { in sync_two()
96 async fn drop_in_fut() { in drop_in_fut()
100 foo = async { in drop_in_fut()
112 async fn one_ready() { in one_ready()
130 async fn select_streams() { in select_streams()
136 tokio::spawn(async move { in select_streams()
171 async fn move_uncompleted_futures() { in move_uncompleted_futures()
197 async fn nested() { in nested()
199 x = async { 1 } => { in nested()
201 y = async { 2 } => x + y, in nested()
216 async fn struct_size_1() { in struct_size_1()
217 let fut = async { in struct_size_1()
229 async fn struct_size_2() { in struct_size_2()
230 let fut = async { in struct_size_2()
244 async fn struct_size_3() { in struct_size_3()
245 let fut = async { in struct_size_3()
262 async fn mutable_borrowing_future_with_same_borrow_in_block() { in mutable_borrowing_future_with_same_borrow_in_block()
276 async fn mutable_borrowing_future_with_same_borrow_in_block_and_else() { in mutable_borrowing_future_with_same_borrow_in_block_and_else()
293 async fn future_panics_after_poll() { in future_panics_after_poll()
306 let mut f = task::spawn(async { in future_panics_after_poll()
323 async fn disable_with_if() { in disable_with_if()
329 let mut f = task::spawn(async { in disable_with_if()
345 async fn join_with_select() { in join_with_select()
351 let mut f = task::spawn(async { in join_with_select()
381 async fn use_future_in_if_condition() { in use_future_in_if_condition()
388 _ = async { 1u32 } => { in use_future_in_if_condition()
395 async fn use_future_in_if_condition_biased() { in use_future_in_if_condition_biased()
403 _ = async { 1u32 } => { in use_future_in_if_condition_biased()
409 async fn many_branches() { in many_branches()
411 x = async { 1 } => x, in many_branches()
412 x = async { 1 } => x, in many_branches()
413 x = async { 1 } => x, in many_branches()
414 x = async { 1 } => x, in many_branches()
415 x = async { 1 } => x, in many_branches()
416 x = async { 1 } => x, in many_branches()
417 x = async { 1 } => x, in many_branches()
418 x = async { 1 } => x, in many_branches()
419 x = async { 1 } => x, in many_branches()
420 x = async { 1 } => x, in many_branches()
421 x = async { 1 } => x, in many_branches()
422 x = async { 1 } => x, in many_branches()
423 x = async { 1 } => x, in many_branches()
424 x = async { 1 } => x, in many_branches()
425 x = async { 1 } => x, in many_branches()
426 x = async { 1 } => x, in many_branches()
427 x = async { 1 } => x, in many_branches()
428 x = async { 1 } => x, in many_branches()
429 x = async { 1 } => x, in many_branches()
430 x = async { 1 } => x, in many_branches()
431 x = async { 1 } => x, in many_branches()
432 x = async { 1 } => x, in many_branches()
433 x = async { 1 } => x, in many_branches()
434 x = async { 1 } => x, in many_branches()
435 x = async { 1 } => x, in many_branches()
436 x = async { 1 } => x, in many_branches()
437 x = async { 1 } => x, in many_branches()
438 x = async { 1 } => x, in many_branches()
439 x = async { 1 } => x, in many_branches()
440 x = async { 1 } => x, in many_branches()
441 x = async { 1 } => x, in many_branches()
442 x = async { 1 } => x, in many_branches()
443 x = async { 1 } => x, in many_branches()
444 x = async { 1 } => x, in many_branches()
445 x = async { 1 } => x, in many_branches()
446 x = async { 1 } => x, in many_branches()
447 x = async { 1 } => x, in many_branches()
448 x = async { 1 } => x, in many_branches()
449 x = async { 1 } => x, in many_branches()
450 x = async { 1 } => x, in many_branches()
451 x = async { 1 } => x, in many_branches()
452 x = async { 1 } => x, in many_branches()
453 x = async { 1 } => x, in many_branches()
454 x = async { 1 } => x, in many_branches()
455 x = async { 1 } => x, in many_branches()
456 x = async { 1 } => x, in many_branches()
457 x = async { 1 } => x, in many_branches()
458 x = async { 1 } => x, in many_branches()
459 x = async { 1 } => x, in many_branches()
460 x = async { 1 } => x, in many_branches()
461 x = async { 1 } => x, in many_branches()
462 x = async { 1 } => x, in many_branches()
463 x = async { 1 } => x, in many_branches()
464 x = async { 1 } => x, in many_branches()
465 x = async { 1 } => x, in many_branches()
466 x = async { 1 } => x, in many_branches()
467 x = async { 1 } => x, in many_branches()
468 x = async { 1 } => x, in many_branches()
469 x = async { 1 } => x, in many_branches()
470 x = async { 1 } => x, in many_branches()
471 x = async { 1 } => x, in many_branches()
472 x = async { 1 } => x, in many_branches()
473 x = async { 1 } => x, in many_branches()
474 x = async { 1 } => x, in many_branches()
481 async fn never_branch_no_warnings() { in never_branch_no_warnings()
489 async fn one() -> usize { in one()
493 async fn require_mutable(_: &mut i32) {} in require_mutable()
494 async fn async_noop() {} in async_noop()
496 async fn async_never() -> ! { in async_never()
502 async fn mut_on_left_hand_side() { in mut_on_left_hand_side()
503 let v = async move { in mut_on_left_hand_side()
504 let ok = async { 1 }; in mut_on_left_hand_side()
518 async fn biased_one_not_ready() { in biased_one_not_ready()
543 async fn biased_eventually_ready() { in biased_eventually_ready()
546 let one = async {}; in biased_eventually_ready()
547 let two = async { yield_now().await }; in biased_eventually_ready()
548 let three = async { yield_now().await }; in biased_eventually_ready()
580 pub async fn default_numeric_fallback() { in default_numeric_fallback()
582 _ = async {} => (), in default_numeric_fallback()
589 async fn mut_ref_patterns() { in mut_ref_patterns()
591 Some(mut foo) = async { Some("1".to_string()) } => { in mut_ref_patterns()
599 Some(ref foo) = async { Some("1".to_string()) } => { in mut_ref_patterns()
605 Some(ref mut foo) = async { Some("1".to_string()) } => { in mut_ref_patterns()
624 let rt1_values = rt1.block_on(async { (select_0_to_9().await, select_0_to_9().await) }); in deterministic_select_current_thread()
630 let rt2_values = rt2.block_on(async { (select_0_to_9().await, select_0_to_9().await) }); in deterministic_select_current_thread()
644 let rt1_values = rt1.block_on(async { in deterministic_select_multi_thread()
645 let _ = tokio::spawn(async { (select_0_to_9().await, select_0_to_9().await) }).await; in deterministic_select_multi_thread()
653 let rt2_values = rt2.block_on(async { in deterministic_select_multi_thread()
654 let _ = tokio::spawn(async { (select_0_to_9().await, select_0_to_9().await) }).await; in deterministic_select_multi_thread()
660 async fn select_0_to_9() -> u32 { in select_0_to_9()
662 x = async { 0 } => x, in select_0_to_9()
663 x = async { 1 } => x, in select_0_to_9()
664 x = async { 2 } => x, in select_0_to_9()
665 x = async { 3 } => x, in select_0_to_9()
666 x = async { 4 } => x, in select_0_to_9()
667 x = async { 5 } => x, in select_0_to_9()
668 x = async { 6 } => x, in select_0_to_9()
669 x = async { 7 } => x, in select_0_to_9()
670 x = async { 8 } => x, in select_0_to_9()
671 x = async { 9 } => x, in select_0_to_9()