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

fix writing source meta concurrently #288

Merged
merged 9 commits into from
Dec 17, 2021
Merged

fix writing source meta concurrently #288

merged 9 commits into from
Dec 17, 2021

Conversation

ryanatkn
Copy link
Owner

@ryanatkn ryanatkn commented Dec 16, 2021

There's a race condition with writing the source meta to disk. Hoping this fixes it; it's hard to replicate. Adds and tests the new utility throttleAsync to discard all but the first and last calls to a promise-returning function.

@ryanatkn ryanatkn merged commit 52f725c into main Dec 17, 2021
@ryanatkn ryanatkn deleted the fix-meta-concurrency branch December 17, 2021 04:04
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.

1 participant