File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,8 @@ use std::sync::Arc;
9
9
use std:: sync:: Mutex ;
10
10
use std:: time:: Duration ;
11
11
12
- use crossbeam:: channel:: after;
13
12
use crossbeam:: channel:: bounded;
14
13
use crossbeam:: channel:: Sender ;
15
- use crossbeam:: select;
16
14
use harp:: exec:: r_sandbox;
17
15
use harp:: test:: R_TASK_BYPASS ;
18
16
use libr:: R_Interactive ;
@@ -102,19 +100,8 @@ where
102
100
) ;
103
101
} ;
104
102
105
- // Now that we know the task has started, set up the timeout
106
- let timeout = std:: time:: Duration :: from_secs ( 5 ) ;
107
-
108
103
// Block until task was completed or timed out
109
- let status = select ! {
110
- recv( status_rx) -> status => status. unwrap( ) ,
111
- recv( after( timeout) ) -> _ => {
112
- let trace = std:: backtrace:: Backtrace :: capture( ) ;
113
- panic!( "Timeout while running task.\n \
114
- Backtrace of calling thread:\n \n \
115
- {trace}") ;
116
- } ,
117
- } ;
104
+ let status = status_rx. recv ( ) . unwrap ( ) ;
118
105
119
106
let RTaskStatus :: Finished ( status) = status else {
120
107
let trace = std:: backtrace:: Backtrace :: capture ( ) ;
You can’t perform that action at this time.
0 commit comments