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 1
1
use futures:: task:: { self , ArcWake } ;
2
- use std:: sync:: Mutex ;
3
2
use std:: convert:: TryFrom ;
4
3
use std:: future:: Future ;
5
4
use std:: pin:: Pin ;
6
5
use std:: sync:: Arc ;
6
+ use std:: sync:: Mutex ;
7
7
use std:: task:: Context ;
8
8
use std:: time:: Duration ;
9
9
use wasm_bindgen:: { closure:: Closure , JsCast } ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ use heap_timer::HeapTimer;
34
34
use timer:: { ScheduledTimer , Timer , TimerHandle } ;
35
35
36
36
pub use self :: delay:: Delay ;
37
- #[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
38
- use wasm_timer:: Instant ;
39
37
#[ cfg( not( all( target_arch = "wasm32" , target_os = "unknown" ) ) ) ]
40
38
use std:: time:: Instant ;
39
+ #[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
40
+ use wasm_timer:: Instant ;
You can’t perform that action at this time.
0 commit comments