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"]
2020
2121[dependencies ]
2222async-channel = " ^2.1.1"
23- async-executor = " ^1.8"
2423async-lock = " ^3.2"
2524blocking = " ^1.5"
2625futures-lite = " ^2.0"
2726once_cell = " ^1.4"
2827
28+ [dependencies .async-executor ]
29+ version = " ^1.12"
30+ features = [" static" ]
31+
2932[dependencies .async-io ]
3033version = " ^2.2.1"
3134optional = true
Original file line number Diff line number Diff line change 11use crate :: Task ;
2- use async_executor:: { Executor , LocalExecutor } ;
2+ use async_executor:: { LocalExecutor , StaticExecutor } ;
33use std:: future:: Future ;
44
5- pub ( crate ) static GLOBAL_EXECUTOR : Executor < ' _ > = Executor :: new ( ) ;
5+ pub ( crate ) static GLOBAL_EXECUTOR : StaticExecutor = StaticExecutor :: new ( ) ;
66
77thread_local ! {
88 pub ( crate ) static LOCAL_EXECUTOR : LocalExecutor <' static > = const { LocalExecutor :: new( ) } ;
You can’t perform that action at this time.
0 commit comments