Skip to content

fix: Thread-safety fixes, broken example app#1292

Merged
krizzu merged 8 commits into
mainfrom
shared/fixes-and-upgrades
May 18, 2026
Merged

fix: Thread-safety fixes, broken example app#1292
krizzu merged 8 commits into
mainfrom
shared/fixes-and-upgrades

Conversation

@krizzu
Copy link
Copy Markdown
Member

@krizzu krizzu commented May 17, 2026

Summary

Adding few fixes from different areas:

  • Correctly handle "other" error for Apple platforms
  • Android to use limited parallelism from DispatcherIO, instead of using dedicated thread pools per database
  • When providing null for a key, for some reason, throw an error instead of crashing the app
  • Make example RN example work again
  • Use concurrent hashmap instead of hashmap + synchronization combo for Storage initialization on Android
  • Do double check lock for legacy storage initialization on android

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 17, 2026

🦋 Changeset detected

Latest commit: 41d8953

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@react-native-async-storage/async-storage Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

krizzu added 2 commits May 17, 2026 22:05
- Android to use limited parallelism from DispatcherIO, instead of using dedicated thread pools per database
- When providing null for a key, for some reason, throw an error instead of crashing the app
- Make example RN example work again
- Use concurrent hashmap instead of hashmap + synchronization combo for Storage initialization on Android
- Double check lock for legacy storage initialization on android
@krizzu krizzu marked this pull request as ready for review May 18, 2026 12:27
@krizzu krizzu requested a review from tido64 as a code owner May 18, 2026 12:27
@krizzu krizzu merged commit 350e149 into main May 18, 2026
11 checks passed
@krizzu krizzu deleted the shared/fixes-and-upgrades branch May 18, 2026 14:36
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