File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ default = [
31
31
" log" ,
32
32
" multitask" ,
33
33
" num_cpus" ,
34
+ " parking" ,
34
35
" pin-project-lite" ,
35
36
]
36
37
docs = [" attributes" , " unstable" , " default" ]
@@ -82,6 +83,7 @@ surf = { version = "1.0.3", optional = true }
82
83
async-io = { version = " 0.1.2" , optional = true }
83
84
blocking = { version = " 0.4.6" , optional = true }
84
85
multitask = { version = " 0.2.0" , optional = true }
86
+ parking = { version = " 1.0.5" , optional = true }
85
87
86
88
[target .'cfg(target_arch = "wasm32")' .dependencies ]
87
89
futures-timer = { version = " 3.0.2" , optional = true , features = [" wasm-bindgen" ] }
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ static GLOBAL_EXECUTOR: once_cell::sync::Lazy<multitask::Executor> = once_cell::
6
6
7
7
struct Executor {
8
8
local_executor : multitask:: LocalExecutor ,
9
- parker : async_io :: parking:: Parker ,
9
+ parker : parking:: Parker ,
10
10
}
11
11
12
12
thread_local ! {
13
13
static EXECUTOR : RefCell <Executor > = RefCell :: new( {
14
- let ( parker, unparker) = async_io :: parking:: pair( ) ;
14
+ let ( parker, unparker) = parking:: pair( ) ;
15
15
let local_executor = multitask:: LocalExecutor :: new( move || unparker. unpark( ) ) ;
16
16
Executor { local_executor, parker }
17
17
} ) ;
You can’t perform that action at this time.
0 commit comments