everyday_macros
This crate contains all the procedural macros you might use in your everyday life while coding. Things like a thread sleep timer or a retry on error.
Getting Started
To a thread sleep timer to the prologue of your function. It is uses std::thread::sleep
for default functions and tokio::time::sleep
for async. It also has the ability to add a jitter with a range of [0, N).
To add a harness around your function add the follow above it. Currently does not work on async!
Running the tests
Just run
&&
Authors
- Paul Ganea - Initial work - pegleg
License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details