-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EXTERNAL] Lock RateLimiter.shouldProceed() entirely to avoid race co…
…nditions (#4635) via @nguyenhuy (#4637) * [EXTERNAL] Lock RateLimiter.shouldProceed() entirely to avoid race conditions (#4635) * Lock RateLimiter.shouldProceed() entirely to avoid race conditions Android does this as well: https://github.com/RevenueCat/purchases-android/blob/eb3c8f4aa1a6993f12d6e2f93cc82d26063101a6/purchases/src/main/kotlin/com/revenuecat/purchases/utils/RateLimiter.kt#L10 * Fix typo in RateLimiterTests' file name * Update Sources/Misc/RateLimiter.swift As suggested by @facumenzella Co-authored-by: Facundo Menzella <[email protected]> --------- via @nguyenhuy * Update Sources/Misc/RateLimiter.swift via @nguyenhuy Co-authored-by: Huy Nguyen <[email protected]> --------- Co-authored-by: Huy Nguyen <[email protected]>
- Loading branch information
1 parent
7f22a15
commit 13942b8
Showing
3 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters