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

Public poll functions #173

Closed
wants to merge 1 commit into from
Closed

Conversation

bootuz
Copy link
Contributor

@bootuz bootuz commented Mar 6, 2025

I've made poll functions public to be able to use them in libraries that use swift-webdriver as a dependency to avoid code duplication.

@bootuz bootuz changed the title Avoid assertion failures in deinitializers (#168) Public poll functions Mar 6, 2025
@bootuz bootuz marked this pull request as ready for review March 6, 2025 09:26
@@ -5,7 +5,7 @@ import struct Dispatch.DispatchTime
/// Calls a closure repeatedly with exponential backoff until it reports success or a timeout elapses.
/// Thrown errors bubble up immediately, returned errors allow retries.
/// - Returns: The successful value.
internal func poll<Value>(
public func poll<Value>(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think providing a poll function is out of scope for swift-webdriver as a library, even if it needs it internally. I'd be curious to see what your use case is though, in case there are functionality gaps to be filled.

@bootuz bootuz closed this Mar 19, 2025
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.

2 participants