Skip to content

Commit 5550087

Browse files
committed
feat(compat): use futures-channel
1 parent 71b6085 commit 5550087

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

compio-compat/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mod_use = { workspace = true }
1919
[target.'cfg(windows)'.dependencies]
2020
compio-driver = { workspace = true }
2121

22-
oneshot = { version = "0.2.1", features = ["async"] }
22+
futures-channel = { workspace = true }
2323
windows-sys = { workspace = true, features = ["Win32_System_Threading"] }
2424
windows-threading = "0.2.1"
2525

compio-compat/src/sys/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl WindowsAdapter {
2323
}
2424

2525
async fn wait(&self, timeout: Option<Duration>) -> io::Result<()> {
26-
let (sender, receiver) = oneshot::async_channel::<io::Result<()>>();
26+
let (sender, receiver) = futures_channel::oneshot::channel::<io::Result<()>>();
2727
let event = unsafe { CreateEventW(std::ptr::null(), 0, 0, std::ptr::null()) };
2828
if event.is_null() {
2929
return Err(io::Error::last_os_error());

0 commit comments

Comments
 (0)