Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] Add method to get the latest value from the BroadcastReceiver #282

Closed
wants to merge 1 commit into from

Conversation

alexkoon
Copy link

We have a use case where we when accessing the BroadcastReceiver, we always want the latest data skipping any data ahead of it.

@JPWatson
Copy link
Collaborator

JPWatson commented Aug 2, 2024

This solution adds additional cost by adding additional branches for the primary use of this data structure.
Your use-case of always consuming the latest item can be achieved more efficiently by using a single field.
Closing this one.

@JPWatson JPWatson closed this Aug 2, 2024
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