Expand description
This library provides helper macros for using async functions in traits.
Attribute Macrosยง
- native_
async - The
#[async_trait]
macro is used to desugar async functions in traits to returnimpl Future + Send
. - strip_
async - This macro can be used in place of the
native_async
macro to strip away all use ofasync
and.await
syntax. This helps emulate async-generic by turnining async functions into sync functions.