File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,13 @@ impl<S:Storage + std::marker::Send + std::marker::Sync> From<S> for InterpreterC
64
64
impl < S : Storage + std:: marker:: Send + std:: marker:: Sync + ' static > InterpreterContext < S > {
65
65
66
66
// this is the entrypoint, it must not be called by interpretered pars
67
- pub async fn evaludate ( self : & Arc < Self > , mut par : Par ) {
67
+ pub async fn evaludate_par ( self : & Arc < Self > , mut par : Par ) {
68
68
let env = Env :: < Par > :: default ( ) ;
69
69
if let Err ( e) = par. evaluate ( & self , & env)
70
70
{
71
71
self . push_error ( e) ;
72
72
}
73
- self . wait_group . notify . notified ( ) ;
73
+ self . wait_group . notify . notified ( ) . await ;
74
74
}
75
75
76
76
#[ inline]
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ async fn test<S>(storage : S, par : Par)
95
95
let context = std:: sync:: Arc :: new ( interpreter:: InterpreterContext :: from ( storage. clone ( ) ) ) ;
96
96
97
97
let now = Instant :: now ( ) ;
98
- context. evaludate ( par) . await ;
98
+ context. evaludate_par ( par) . await ;
99
99
info ! ( "Reduction took {} ms" , now. elapsed( ) . as_millis( ) ) ;
100
100
/*
101
101
for err in errors {
You can’t perform that action at this time.
0 commit comments