Elektrine lite

← Feed

@diondokter@fosstodon.org

Post #1976503

2026-05-04 13:46 UTC

Final part of my async blog! https://tweedegolf.nl/en/blog/237/async-rust-never-left-the-mvp-state Last time I shared some tips for improving your async code. Now we look at why the compiler doesn't do it for us. I want to fix it in the compiler, but I need your help! If you can help with funding, reach out to me. Please share :)

Replies (1)

  • @chrysn@chaos.social 2026-05-04 18:06

    @diondokter Could an async fn / block waive the "does not do anything until polled" guarantee? (Like `#[allow_eager_parts]`. Ideally, this might even become default in a future edition). The only reason I see for this guarantee to be there is so that all the inner parts can be pinned, but then *if* anything relevant is not Unpin, the compiler could still go into the old mode.

    Open ##2028353