We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ac7fce commit f25af48Copy full SHA for f25af48
README.md
@@ -59,8 +59,8 @@ use wstd::net::TcpListener;
59
use wstd::runtime::block_on;
60
61
fn main() -> io::Result<()> {
62
- block_on(|reactor| async move {
63
- let listener = TcpListener::bind(&reactor, "127.0.0.1:8080").await?;
+ block_on(async move {
+ let listener = TcpListener::bind("127.0.0.1:8080").await?;
64
println!("Listening on {}", listener.local_addr()?);
65
println!("type `nc localhost 8080` to create a TCP client");
66
0 commit comments