File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ default = [
27
27
" async-io" ,
28
28
" async-task" ,
29
29
" blocking" ,
30
+ " futures-lite" ,
30
31
" kv-log-macro" ,
31
32
" log" ,
32
33
" num_cpus" ,
@@ -81,6 +82,7 @@ surf = { version = "1.0.3", optional = true }
81
82
[target .'cfg(not(target_os = "unknown"))' .dependencies ]
82
83
async-io = { version = " 0.1.5" , optional = true }
83
84
blocking = { version = " 0.5.0" , optional = true }
85
+ futures-lite = { version = " 0.1.8" , optional = true }
84
86
smol = { version = " 0.1.17" , optional = true }
85
87
86
88
[target .'cfg(target_arch = "wasm32")' .dependencies ]
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ impl Drop for File {
315
315
// non-blocking fashion, but our only other option here is losing data remaining in the
316
316
// write cache. Good task schedulers should be resilient to occasional blocking hiccups in
317
317
// file destructors so we don't expect this to be a common problem in practice.
318
- let _ = smol :: block_on ( self . flush ( ) ) ;
318
+ let _ = futures_lite :: future :: block_on ( self . flush ( ) ) ;
319
319
}
320
320
}
321
321
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ impl Builder {
169
169
// The first call should use run.
170
170
smol:: run ( wrapped)
171
171
} else {
172
- smol :: block_on ( wrapped)
172
+ futures_lite :: future :: block_on ( wrapped)
173
173
} ;
174
174
num_nested_blocking. replace ( num_nested_blocking. get ( ) - 1 ) ;
175
175
res
You can’t perform that action at this time.
0 commit comments