It is Rust implementing the pattern. So… :P
- 0 Posts
- 4 Comments
Joined 3 years ago
Cake day: April 3rd, 2024
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
When people say “async is viral” in Rust, they mean that once you make one function
async, that change tends to ripple through the rest of your code. Any function that calls it usually has to becomeasyncas well so it canawaitthe result. In turn, the callers of those functions often need to becomeasynctoo.This propagation can continue all the way up the call stack until you reach your application’s entry point. The main exception is when you introduce an explicit synchronous-to-asynchronous boundary, such as by using
block_on, which drives the future to completion without requiring the caller itself to beasync.
- viral async
- viral lifetime annotations
🫣
„Claude, rewrite the Linux kernel in Rust. Make no mistakes.“