Skip to content

Comment on Function Arguments Are Not Function Colorsparent

Comments

I'm not familiar with how Rust's async works. What if Rust used the function argument approach, how would that work? Would people pass around a reference to an async executor as arguments (or similar)?

Maybe.. something like how Zig works where it passes the I/O object around that encapsulates the required concurrency around the bottlenecks?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.