File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ use std::task::Context;
88use std:: task:: Poll ;
99
1010use futures:: Stream ;
11+ #[ cfg( all( test, not( feature = "tokio" ) ) ) ]
12+ use oneshot;
1113use pin_project_lite:: pin_project;
1214use vortex_buffer:: Alignment ;
1315use vortex_error:: VortexExpect ;
Original file line number Diff line number Diff line change @@ -8,8 +8,13 @@ use futures::Stream;
88use futures:: StreamExt ;
99use futures:: future:: BoxFuture ;
1010use futures:: stream:: LocalBoxStream ;
11+ #[ cfg( not( feature = "tokio" ) ) ]
12+ use oneshot;
1113use parking_lot:: Mutex ;
1214use smol:: LocalExecutor ;
15+ // Prefer tokio::sync::oneshot when tokio feature is enabled
16+ #[ cfg( feature = "tokio" ) ]
17+ use tokio:: sync:: oneshot;
1318use vortex_error:: vortex_panic;
1419
1520use crate :: runtime:: AbortHandle ;
@@ -18,7 +23,6 @@ use crate::runtime::BlockingRuntime;
1823use crate :: runtime:: Executor ;
1924use crate :: runtime:: Handle ;
2025use crate :: runtime:: smol:: SmolAbortHandle ;
21-
2226/// A runtime that drives all work on the current thread.
2327///
2428/// This is subtly different from using a current-thread runtime to drive a future since it is
You can’t perform that action at this time.
0 commit comments