Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Async closures in Rust have been stabilized (github.com/rust-lang)
33 points by sapiogram on Dec 13, 2024 | hide | past | favorite | 4 comments


Kudos. This is one less papercut for async rust. I first started using futures in Rust in the first release and it's been a slow road, but gradually improving with each fix like this.

In terms of what's really left before async rust is as pleasant as normal rust? Off the top of my head I'd say that improving ergonomics around cloning of Rc/Arc self types might be there. I'm creating a lot of inner types to work around the ergonomics of calling clone at each call site and this would remove one of the last annoyances here.

Oh, and generators being stabilized would be amazing too.


Woot! I'm just waiting on AsyncDrop...then the async rust story becomes mostly usable


I've gotten used to lack of Async closures, but the lack of AsyncDrop is still a big foot gun.


hallelujah! This is definitely one of the more common annoyances one will still run into in async rust.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: