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()
211 async fn struct_size() { in struct_size()
215 let fut = async { in struct_size()
225 let fut = async { in struct_size()
237 let fut = async { in struct_size()
253 async fn mutable_borrowing_future_with_same_borrow_in_block() { in mutable_borrowing_future_with_same_borrow_in_block()
267 async fn mutable_borrowing_future_with_same_borrow_in_block_and_else() { in mutable_borrowing_future_with_same_borrow_in_block_and_else()
284 async fn future_panics_after_poll() { in future_panics_after_poll()
297 let mut f = task::spawn(async { in future_panics_after_poll()
314 async fn disable_with_if() { in disable_with_if()
320 let mut f = task::spawn(async { in disable_with_if()
336 async fn join_with_select() { in join_with_select()
342 let mut f = task::spawn(async { in join_with_select()
372 async fn use_future_in_if_condition() { in use_future_in_if_condition()
379 _ = async { 1u32 } => { in use_future_in_if_condition()
386 async fn use_future_in_if_condition_biased() { in use_future_in_if_condition_biased()
394 _ = async { 1u32 } => { in use_future_in_if_condition_biased()
400 async fn many_branches() { in many_branches()
402 x = async { 1 } => x, in many_branches()
403 x = async { 1 } => x, in many_branches()
404 x = async { 1 } => x, in many_branches()
405 x = async { 1 } => x, in many_branches()
406 x = async { 1 } => x, in many_branches()
407 x = async { 1 } => x, in many_branches()
408 x = async { 1 } => x, in many_branches()
409 x = async { 1 } => x, in many_branches()
410 x = async { 1 } => x, 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()
472 async fn never_branch_no_warnings() { in never_branch_no_warnings()
480 async fn one() -> usize { in one()
484 async fn require_mutable(_: &mut i32) {} in require_mutable()
485 async fn async_noop() {} in async_noop()
487 async fn async_never() -> ! { in async_never()
493 async fn mut_on_left_hand_side() { in mut_on_left_hand_side()
494 let v = async move { in mut_on_left_hand_side()
495 let ok = async { 1 }; in mut_on_left_hand_side()
509 async fn biased_one_not_ready() { in biased_one_not_ready()
534 async fn biased_eventually_ready() { in biased_eventually_ready()
537 let one = async {}; in biased_eventually_ready()
538 let two = async { yield_now().await }; in biased_eventually_ready()
539 let three = async { yield_now().await }; in biased_eventually_ready()
571 pub async fn default_numeric_fallback() { in default_numeric_fallback()
573 _ = async {} => (), in default_numeric_fallback()
580 async fn mut_ref_patterns() { in mut_ref_patterns()
582 Some(mut foo) = async { Some("1".to_string()) } => { in mut_ref_patterns()
590 Some(ref foo) = async { Some("1".to_string()) } => { in mut_ref_patterns()
596 Some(ref mut foo) = async { Some("1".to_string()) } => { in mut_ref_patterns()
615 let rt1_values = rt1.block_on(async { (select_0_to_9().await, select_0_to_9().await) }); in deterministic_select_current_thread()
621 let rt2_values = rt2.block_on(async { (select_0_to_9().await, select_0_to_9().await) }); in deterministic_select_current_thread()
635 let rt1_values = rt1.block_on(async { in deterministic_select_multi_thread()
636 let _ = tokio::spawn(async { (select_0_to_9().await, select_0_to_9().await) }).await; in deterministic_select_multi_thread()
644 let rt2_values = rt2.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()
651 async fn select_0_to_9() -> u32 { in select_0_to_9()
653 x = async { 0 } => x, in select_0_to_9()
654 x = async { 1 } => x, in select_0_to_9()
655 x = async { 2 } => x, in select_0_to_9()
656 x = async { 3 } => x, in select_0_to_9()
657 x = async { 4 } => x, in select_0_to_9()
658 x = async { 5 } => x, in select_0_to_9()
659 x = async { 6 } => x, in select_0_to_9()
660 x = async { 7 } => x, in select_0_to_9()
661 x = async { 8 } => x, in select_0_to_9()
662 x = async { 9 } => x, in select_0_to_9()