File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,15 @@ tokio = ["dep:tokio"]
20
20
21
21
[dependencies ]
22
22
async-channel = " ^2.1.1"
23
- async-executor = " ^1.8"
24
23
async-lock = " ^3.2"
25
24
blocking = " ^1.5"
26
25
futures-lite = " ^2.0"
27
26
once_cell = " ^1.4"
28
27
28
+ [dependencies .async-executor ]
29
+ version = " ^1.12"
30
+ features = [" static" ]
31
+
29
32
[dependencies .async-io ]
30
33
version = " ^2.2.1"
31
34
optional = true
Original file line number Diff line number Diff line change 1
1
use crate :: Task ;
2
- use async_executor:: { Executor , LocalExecutor } ;
2
+ use async_executor:: { LocalExecutor , StaticExecutor } ;
3
3
use std:: future:: Future ;
4
4
5
- pub ( crate ) static GLOBAL_EXECUTOR : Executor < ' _ > = Executor :: new ( ) ;
5
+ pub ( crate ) static GLOBAL_EXECUTOR : StaticExecutor = StaticExecutor :: new ( ) ;
6
6
7
7
thread_local ! {
8
8
pub ( crate ) static LOCAL_EXECUTOR : LocalExecutor <' static > = const { LocalExecutor :: new( ) } ;
You can’t perform that action at this time.
0 commit comments