launchdarkly / swift-eventsource

Server-sent events (SSE) client implementation in Swift for iOS, macOS, tvOS, and watchOS
https://launchdarkly.github.io/swift-eventsource/
Other
187 stars 34 forks source link

[sc-145480] Fix race condition on stop during reconnection. #42

Closed gwhelanLD closed 2 years ago

gwhelanLD commented 2 years ago

Broke out reconnection timing logic. Simplified the reconnection logic and moved responsibility over certain fields from EventSourceDelegate to EventParser to simplify concurrency concerns. Updated build script for linting with SwiftLint using mint to add PATH for brew installed mint on Apple Silicon.