News for hackers. Stuff that matters.
Re:Why async fn in traits are hard by ogoffart on Sunday October 27, 2019 @02:35PM (#21371559)
Depends on the (not-yet-implemented) implementation of async functions in traits. But currently, with the async_trait macro, there is only one version of Foo::foo, and it returns a Box<...>. But it is true we could imagine the compiler generating two versions: one for when the static type is known, and one if dynamic dispatch is used.

There are no comments on this comment yet.