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

feat: retain multiple calls per event until consumed #6419

Merged
merged 8 commits into from
Mar 31, 2023

Conversation

theproducer
Copy link
Contributor

Adds support for retaining multiple calls per event on iOS and Android.

closes: #5967

Copy link
Member

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are now retaining multiple events, and that can cause a delay on the execution, if a new event gets triggered while the events are being forwarded to javascript, that can cause race conditions and some events might be lost.

I think the code should create a copy of the retained event array and null the original one right away and then use the for on the copy array, so if new events happen during the for, the original array is null again and can get the new events.

@theproducer theproducer merged commit 5aba2cb into main Mar 31, 2023
@theproducer theproducer deleted the retain-multiple-calls branch March 31, 2023 14:10
markemer pushed a commit that referenced this pull request Apr 17, 2023
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.

feat: retain multiple calls per event until consumed
3 participants