new namedpipe

This commit is contained in:
rustdesk
2021-06-26 00:47:45 +08:00
parent 2d515815ed
commit 6f796db523
5 changed files with 63 additions and 145 deletions

View File

@@ -1,4 +1,4 @@
use tokio::{self, prelude::*};
use tokio::{self, io::*};
use parity_tokio_ipc::Endpoint;
#[tokio::main]
@@ -19,6 +19,6 @@ async fn main() {
break;
}
tokio::time::delay_for(std::time::Duration::from_secs(2)).await;
tokio::time::sleep(std::time::Duration::from_secs(2)).await;
}
}

View File

@@ -1,6 +1,5 @@
use futures::StreamExt as _;
use tokio::{
prelude::*,
io::*,
self,
io::split,
};