Skip to content

Replace await-semaphore with async-mutex#15

Merged
Gudahtt merged 2 commits intomasterfrom
replace-await-semaphore-with-async-mutex
Jul 12, 2021
Merged

Replace await-semaphore with async-mutex#15
Gudahtt merged 2 commits intomasterfrom
replace-await-semaphore-with-async-mutex

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented Feb 12, 2021

We've had issues with await-semaphore causing TypeScript errors due to mistakes in how it is packaged. It generally seems to be abandoned.

async-mutex is more actively maintained, has better documentation and test coverage, and is API-compatible for our usage.

@Gudahtt Gudahtt requested a review from a team as a code owner May 11, 2021 13:52
@adonesky1
Copy link
Copy Markdown

adonesky1 commented May 11, 2021

LGTM, though wondering why you didn't select the most recent version of the package?

darkwing
darkwing previously approved these changes May 11, 2021
@Gudahtt
Copy link
Copy Markdown
Member Author

Gudahtt commented May 11, 2021

Huh - it was the most recent version the last time I checked! I'll take a look at the new one.

We've had issues with `await-semaphore` causing TypeScript errors due
to mistakes in how it is packaged. It generally seems to be abandoned.

`async-mutex` is more actively maintained, has better documentation and
test coverage, and is API-compatible for our usage.
@Gudahtt Gudahtt force-pushed the replace-await-semaphore-with-async-mutex branch from b1b6472 to 0198e68 Compare May 11, 2021 14:30
@Gudahtt
Copy link
Copy Markdown
Member Author

Gudahtt commented May 11, 2021

async-mutex has been updated to the latest version. There was one breaking-ish change included in the 0.3.0 update, but it didn't affect us. A single method we don't use (release) was deprecated.

@rekmarks rekmarks self-assigned this Jul 12, 2021
Copy link
Copy Markdown
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gudahtt Gudahtt merged commit 1bd6cc5 into master Jul 12, 2021
@Gudahtt Gudahtt deleted the replace-await-semaphore-with-async-mutex branch July 12, 2021 18:22
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.

4 participants