Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add no_std flag, hide blocking retrys behind std flag #125

Merged
merged 7 commits into from
Aug 31, 2024

Conversation

adrian-kong
Copy link
Contributor

nice library
resolves #105

Changes:

  • Makes all no_std but blocking implementatin behind std due to thread sleep
  • Adds /.idea to gitignore

backon/src/lib.rs Outdated Show resolved Hide resolved
@Xuanwo
Copy link
Owner

Xuanwo commented Aug 27, 2024

Thanks a lot for the contribution!

@Xuanwo Xuanwo marked this pull request as draft August 27, 2024 12:54
@Xuanwo
Copy link
Owner

Xuanwo commented Aug 30, 2024

Hi, I have added blocking sleeper in #138. Would you like to try again?

.gitignore Outdated Show resolved Hide resolved
@@ -24,7 +24,7 @@ impl<F: Fn(Duration) + 'static> BlockingSleeper for F {
/// The default implementation of `Sleeper` when no features are enabled.
///
/// It will fail to compile if a containing [`Retry`][crate::Retry] is `.await`ed without calling [`Retry::sleep`][crate::Retry::sleep] to provide a valid sleeper.
#[cfg(all(not(feature = "tokio-sleep"), not(feature = "gloo-timers-sleep")))]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh this was not compiling for me

Copy link
Owner

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Xuanwo Xuanwo marked this pull request as ready for review August 31, 2024 15:13
@Xuanwo Xuanwo merged commit a5ca057 into Xuanwo:main Aug 31, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make backon available with no-std
2 participants