Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Will Adding Async blocking safety make Rust more complete?
Currently, there are already many safety features that make Rust reliable for use in complex app with many teams. However, there are still some footguns, one of them being async blocking code. The compiler does not tell or warn users that this code will block the async, something like "This code will block async, please recheck whether this is really intended or not"
This has trapped many beginners (I myself got caught by this footgun in the past ><). So wouldn’t it be nice if the compiler got even smarter and could give warnings when some code will block async? Is this possible? And what potential difficulties would make this hard to implement?
13 posts - 5 participants
🏷️ Rust_feed