Re:Async Rust Is A Bad Language
by anonymoushn on Friday September 08, 2023 @03:54PM
(#37438581)
I guess like this:
but the claimed difference is not present in this code. It is that GetUser and GetPromotions do not themselves know whether they are async. The author of service is able to just take some readers and writers or some types or objects implementing some protocols and use them, then service's methods inherit the async-ness of its dependencies.
[ Parent
| on HN ]
There are no comments on this comment yet.