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

Intoduce timeout as a feature #70

Merged
merged 3 commits into from
Jul 1, 2022
Merged

Conversation

Licenser
Copy link
Contributor

This makes timeout a feature that is by default enabled, this preserves the API for backward compatibility.

I also switched the Mutex of the MAX_WAIT to an RwLock, it's not on the critical path but it seemed sensible since it's mostly ever read and rarely written - it also removed two imports :)

I'll follow up with per test timeouts & eventual sequential start in further PRs

Signed-off-by: Heinz N. Gies <heinz@licenser.net>
Copy link
Owner

@palfrey palfrey left a comment

Choose a reason for hiding this comment

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

Tiny spelling change, but otherwise LGTM.

Edit: And some build failures, but looks just like some other places where the cfg hasn't been applied.

serial_test/Cargo.toml Outdated Show resolved Hide resolved
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
@Licenser
Copy link
Contributor Author

Licenser commented Jul 1, 2022

Oh darn, I should have probably run the tests with no default features, sorry :)

Signed-off-by: Heinz N. Gies <heinz@licenser.net>
@Licenser Licenser requested a review from palfrey July 1, 2022 10:27
@Licenser Licenser mentioned this pull request Jul 1, 2022
@palfrey palfrey merged commit 1ff7071 into palfrey:main Jul 1, 2022
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