Async support and fallback function support
First of all, I want to thank you for your implementation of the Circuit Breaker pattern. However, I noticed that the code doesn't support async operations (only for tornado) and fallback functions. Additionally, when performing database operations such as query, insert, and delete, it would be more efficient to use init_connection instead of calling the query method repeatedly.
Does this project welcome pull requests? I would love to contribute and improve it for the community in the near future.
I'm not using this library in my daily work for a few years now, but I welcome people that are looking to improve the library for specific use cases such as this one.
As long as the changes include accompanying test cases, update the README to document the new/changed functionality, and more importantly, do not break backwards compatibility in the API unless absolutely necessary, feel free to submit your PRs!
Also, avoid changing other unrelated stuff in the same PR, as this often makes the PR harder to review, so keep the PRs focused and small is a must. 😄