Get the latest tech news

Async Rust is not safe with io_uring


October 30, 2024 by Tzu Gwo TL;DR 1. Clone this repository on a Linux system that supports io_uring.

Barbara thought, "Great, this looks no different from a typical Tokio program—first bind to an address, then continuously accept new TCP connections in a loop and process them." "self.accept()" runs synchronously, either succeeding by obtaining a TCP stream or encountering a "would block" exception, leaving it in a pending state until the kernel is ready. This means they must be used exactly once, a concept called linear types, which ensures correct usage of resources at compile time.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Async Rust

Async Rust

Related news:

News photo

Async Rust in Three Parts

News photo

Async Rust Isn't Bad: You Are

News photo

Zed Decoded: Async Rust