4 ms·
In Rust, you can just implement the WebSocket protocol in async, and then users who want the synchronous version just use block_on.
by pcwalton 5y ago
In Rust, you can just implement the WebSocket protocol in async, and then users who want the synchronous version just use block_on.