Hacker News new | past | comments | ask | show | jobs | submit login

Nerding a bit more, it was a bit late yesterday: this is why the Future takes this weird type called a `Pin`, which is a guarantee that the value does not move in memory while the Future is polled. This is also one of the reasons the feature took so long, Rust previously only had ways to detect potential moves in memory, but could not disallow them.

https://doc.rust-lang.org/std/future/trait.Future.html#requi...




Interesting ideas. I really must learn Rust properly.




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

Search: