async_t
This library allows for zero-cost compile-time async-traits.
This library needs nightly and features generic_associated_types
and type_alias_impl_trait
to be enabled.
Compiling in stable will automatically use dtolnay's async_trait instead.
It supports everything a normal trait would except:
- default async methods
- blanket implementations
- dynamic dispatch
It can also have problems with lifetimes where they have to be specified.
// spawn example
async