Skip to content

[ABRSDK-4375] refactor: migrate to Swift concurrency - #30

Draft
minjae999 wants to merge 31 commits into
mainfrom
feature/ABRSDK-4375
Draft

[ABRSDK-4375] refactor: migrate to Swift concurrency#30
minjae999 wants to merge 31 commits into
mainfrom
feature/ABRSDK-4375

Conversation

@minjae999

Copy link
Copy Markdown
Collaborator

Summary

  • migrate Promise and Contract internals for Swift concurrency safety
  • replace Atomic-backed storage with serialized Swift concurrency implementations
  • add Promise and Task bridges and apply them to network and storage modules
  • isolate FileValuePreference with an async actor API

Validation

  • swift build for the iOS 15 target
  • focused Promise, Contract, AppleStorage, Network, and ApplePreference tests
  • git diff --check

minjae999 and others added 30 commits August 21, 2026 10:54
Replace Promise synchronization with lock-protected state.
Serialize Contract events and enforce checked Sendable boundaries.
Run observers outside the state lock and retain producer callbacks until completion. Remove the unused race composition and preserve delay ordering coverage without it.
Add explicit Apple platform minimums to the package.
Guard platform framework imports and isolate UIKit reads.
Make Interval safe to capture across task boundaries.
Pass timeout values through Network and convert only before sleeping.
Allow Timestamp values to cross task boundaries safely.
Verify detached-task capture without changing time semantics.
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.

2 participants