Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zamalek
· 3y ago · 0 comments
It may no longer be necessary for pins to exist for async implementation:
https://doc.rust-lang.org/std/rc/struct.Rc.html#method.new_c...
(but the current async interface requires using them, so my point is definitely a whatifism).
Comments
[–]
kprotty
3y ago
Replacing Pin with Rc is what they refer to as "Arc shit up". Pin avoids the need for a heap allocation like Rc/Arc entirely.