Repository navigation
1.0.6
What's Changed
- Fixed synchronization between statePublisher and isConnected property
- Ensures consistent connection state when accessing property inside publisher callbacks
- Fixed race condition where property might return different value than publisher
Technical Details
This release addresses an issue where the isConnected property might return a different value than what was emitted by the statePublisher when accessed inside publisher callbacks. The Connection class now maintains a synchronized state variable to ensure consistency.
Migration
No code changes required. Simply update your dependency to 1.0.6:
.package(url: "https://github.com/afterxleep/Connectable", .upToNextMajor(from: "1.0.6"))