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

Make locks for the top level function opt-in #142

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

avillega
Copy link
Contributor

This should improve the default experience during recovery,
and allows more advance use cases to use locks when necessary.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.94%. Comparing base (33ef6e5) to head (7202412).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #142      +/-   ##
==========================================
- Coverage   82.47%   79.94%   -2.53%     
==========================================
  Files          17       17              
  Lines        1107     1107              
  Branches      300      309       +9     
==========================================
- Hits          913      885      -28     
- Misses        194      210      +16     
- Partials        0       12      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -195,7 +195,8 @@ export class Resonate {
*/
async start(delay: number = 5000) {
clearInterval(this.#interval);
this.#_start();
// await the first run of the recovery path to avoid races with the normal flow of the program
await this.#_start();
Copy link
Member

Choose a reason for hiding this comment

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

Good idea!

@avillega avillega merged commit 86725f3 into main Aug 23, 2024
2 checks passed
@avillega avillega deleted the avillega/make-locks-opt-in branch August 23, 2024 18:30
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.

3 participants