Skip to content

Conversation

@kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Apr 30, 2025

This PR adds an async task queue. This queue is roughly based on the flutter implementation, but with support for non-shedable tasks like iOS.
https://github.com/launchdarkly/flutter-client-sdk/blob/01841d65d8eb9dbf7cdc1c29b76f2ac8a699fb05/packages/common/lib/src/async/async_single_queue.dart
https://github.com/launchdarkly/ios-client-sdk/blob/082430ff008d76d503327c52b27e3b2af99c3ef2/LaunchDarkly/LaunchDarkly/ServiceObjects/SheddingQueue.swift

This is a chore, because the type is unused and doesn't need a release. A subsequent PR will use it for functionality.

This queue is going to be used for an implementation of the client-side identify spec.
https://github.com/launchdarkly/sdk-specs/tree/main/specs/CSI-client-side-identify

(Spec is private.)

Available for review by anyone, I added Matthew for reference to the iOS SDK in case he was interested.

@github-actions
Copy link
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Size: 23840 bytes
Size limit: 25000

@github-actions
Copy link
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Size: 20702 bytes
Size limit: 21000

@github-actions
Copy link
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Size: 15786 bytes
Size limit: 20000

@kinyoklion kinyoklion marked this pull request as ready for review April 30, 2025 21:38
@kinyoklion kinyoklion requested a review from a team as a code owner April 30, 2025 21:38
@kinyoklion kinyoklion requested a review from keelerm84 April 30, 2025 21:39
@kinyoklion kinyoklion merged commit 1ff4a62 into main May 1, 2025
24 checks passed
@kinyoklion kinyoklion deleted the rlamb/emsr-357/async-task-queue branch May 1, 2025 19:25
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.

4 participants