Update futures and tokio alphas
This commit is contained in:
@@ -74,10 +74,8 @@
|
||||
//!
|
||||
//! #[tokio::main]
|
||||
//! pub async fn main() -> Result<(), Box<dyn Error>> {
|
||||
//! let addr = "127.0.0.1:5928".parse().unwrap();
|
||||
//!
|
||||
//! // Establish TCP connection to the server.
|
||||
//! let tcp = TcpStream::connect(&addr).await?;
|
||||
//! let tcp = TcpStream::connect("127.0.0.1:5928").await?;
|
||||
//! let (h2, connection) = client::handshake(tcp).await?;
|
||||
//! tokio::spawn(async move {
|
||||
//! connection.await.unwrap();
|
||||
|
||||
@@ -70,8 +70,7 @@
|
||||
//!
|
||||
//! #[tokio::main]
|
||||
//! pub async fn main() {
|
||||
//! let addr = "127.0.0.1:5928".parse().unwrap();
|
||||
//! let mut listener = TcpListener::bind(&addr).unwrap();
|
||||
//! let mut listener = TcpListener::bind("127.0.0.1:5928").await.unwrap();
|
||||
//!
|
||||
//! // Accept all incoming TCP connections.
|
||||
//! loop {
|
||||
|
||||
Reference in New Issue
Block a user