Macros§
Attribute Macros§
- timeout
- This macro wraps any async function and transforms it’s output
Tintoanyhow::Result<T>, if the function doesn’t end before the timout it will rais an error The macro also supports creating a#[tracing::instrument]macro with all the params insidetracing(args)Example: #[timeout(10, tracing(skip(non_debug_input)))] #[timeout(12)]