@@ -599,17 +599,17 @@ fn test_thread() {
599
599
) . unwrap ( ) ,
600
600
) ;
601
601
602
- assert_eq ! ( thread. status( ) , ThreadStatus :: Active ) ;
602
+ assert_eq ! ( thread. status( ) , ThreadStatus :: Resumable ) ;
603
603
assert_eq ! ( thread. resume:: <_, i64 >( 0 ) . unwrap( ) , 0 ) ;
604
- assert_eq ! ( thread. status( ) , ThreadStatus :: Active ) ;
604
+ assert_eq ! ( thread. status( ) , ThreadStatus :: Resumable ) ;
605
605
assert_eq ! ( thread. resume:: <_, i64 >( 1 ) . unwrap( ) , 1 ) ;
606
- assert_eq ! ( thread. status( ) , ThreadStatus :: Active ) ;
606
+ assert_eq ! ( thread. status( ) , ThreadStatus :: Resumable ) ;
607
607
assert_eq ! ( thread. resume:: <_, i64 >( 2 ) . unwrap( ) , 3 ) ;
608
- assert_eq ! ( thread. status( ) , ThreadStatus :: Active ) ;
608
+ assert_eq ! ( thread. status( ) , ThreadStatus :: Resumable ) ;
609
609
assert_eq ! ( thread. resume:: <_, i64 >( 3 ) . unwrap( ) , 6 ) ;
610
- assert_eq ! ( thread. status( ) , ThreadStatus :: Active ) ;
610
+ assert_eq ! ( thread. status( ) , ThreadStatus :: Resumable ) ;
611
611
assert_eq ! ( thread. resume:: <_, i64 >( 4 ) . unwrap( ) , 10 ) ;
612
- assert_eq ! ( thread. status( ) , ThreadStatus :: Dead ) ;
612
+ assert_eq ! ( thread. status( ) , ThreadStatus :: Unresumable ) ;
613
613
614
614
let accumulate = lua. create_thread (
615
615
lua. eval :: < Function > (
@@ -628,7 +628,7 @@ fn test_thread() {
628
628
accumulate. resume :: < _ , ( ) > ( i) . unwrap ( ) ;
629
629
}
630
630
assert_eq ! ( accumulate. resume:: <_, i64 >( 4 ) . unwrap( ) , 10 ) ;
631
- assert_eq ! ( accumulate. status( ) , ThreadStatus :: Active ) ;
631
+ assert_eq ! ( accumulate. status( ) , ThreadStatus :: Resumable ) ;
632
632
assert ! ( accumulate. resume:: <_, ( ) >( "error" ) . is_err( ) ) ;
633
633
assert_eq ! ( accumulate. status( ) , ThreadStatus :: Error ) ;
634
634
@@ -642,7 +642,7 @@ fn test_thread() {
642
642
"# ,
643
643
None ,
644
644
) . unwrap ( ) ;
645
- assert_eq ! ( thread. status( ) , ThreadStatus :: Active ) ;
645
+ assert_eq ! ( thread. status( ) , ThreadStatus :: Resumable ) ;
646
646
assert_eq ! ( thread. resume:: <_, i64 >( ( ) ) . unwrap( ) , 42 ) ;
647
647
648
648
let thread: Thread = lua. eval (
0 commit comments