Skip to content

v1.1.0

Compare
Choose a tag to compare
@Xuanwo Xuanwo released this 29 Aug 17:56
· 19 commits to main since this release
v1.1.0
86298fb

A Letter to BackON Users

Hello everyone,

Thank you very much for using BackON!

Before releasing version 1.0.0, I thought it would be better to let users choose their own sleeper implementations, so I didn't enable them by default. However, many users encountered runtime panics. I apologize for not finding a solution that meets all requirements simultaneously: no API breaks, allowing sleeper passing at runtime, and no extra cost.

So in version 1.1.0, I have added tokio-sleeper and gloo-timers-sleep to the default feature. This change will make BackON behave like version 0.4.4, allowing users to upgrade without adding new features. Additionally, I have moved the panic to occur earlier during the poll feature instead of during the sleep call. This makes it easier to catch issues during development rather than at runtime. Furthermore, we will only panic during the debug profile and do nothing in the release profile. This should protect users from panics even in the worst-case scenarios.

Please let me know if you have better solutions! Thanks in advance!

Xuanwo

What's Changed

  • docs: Polish display on the first page of lib.rs by @Xuanwo in #122
  • chore: Make backon a workspace by @Xuanwo in #124
  • docs: Add section for sleeper by @Xuanwo in #130
  • docs: Add sleep in README by @Xuanwo in #131
  • refactor: Enable default features to avoid unexpected panic by @Xuanwo in #132
  • backon: Bump to version 1.1.0 by @Xuanwo in #133

Full Changelog: v1.0.2...v1.1.0