#std.Io typical async example
1 messages · Page 1 of 1 (latest)
There are no "typical" examples because it's a work in progress.
There's Andrew's talk that demos how it is designed to work
https://andrewkelley.me/post/zig-new-async-io-text-version.html
Last i checked the reader/writers were in the middle of being moved, so half of them didnt use the new io while the other half did
You can see example echo server here:
https://github.com/lalinsky/zio/blob/zig-0.16/examples/tcp_echo_server_stdio.zig
it's running on my coroutine engine, but you can simply swap the io instance for Io.Threaded and it will work the same.