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

The lack of warning is from returning `Box<dyn Future>`, which `#[async_trait]` emits. ( https://news.ycombinator.com/item?id=35834091 )

With async-fn-in-trait that flooow linked to (and more generally type-alias-impl-trait) there won't be a motication to use `Box<dyn Future>` in the first place.




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

Search: