Xuanwo / backon

Make retry like a built-in feature provided by Rust.
https://docs.rs/backon/
Apache License 2.0
711 stars 28 forks source link

refactor: Enable default features to avoid unexpected panic #132

Closed Xuanwo closed 2 months ago

Xuanwo commented 2 months ago

Most backon users are accustomed to having a default sleep implementation, making it easy for them to upgrade to new versions like 0.5 or 1.0 without the feature enabled. For example: https://github.com/Xuanwo/backon/issues/128

Let's add default features to simplify their experience. Users who want custom implementations will not be affected.