-
Notifications
You must be signed in to change notification settings - Fork 82
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
Set SDK Initialization True before Completion Handler Invocation #761
Set SDK Initialization True before Completion Handler Invocation #761
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a change in state management due to the misleading name of the flag.
The tasksCompletedSuccessfully
indicates that tasks are just completed. SDK doesn't consider the status of tasks. So we should set
tasksCompletedSuccessfully = true;
Otherwise, the function isSdkInitialized
might return false if the publisher didn't provide a listner.
In any case, I'd suggest to fix the issue not by moving the place of changing value of the flag but calling the listener asynchronously.
But calling it asynchronously would still not guarantee that |
It shouldn't if to add the task (call the lister function) to the queue using, for example, |
…es after "tasksCompletedSuccessfully" is set to true.
@YuriyVelichkoPI thank you for your review/help/direction, I have added the |
Oh, I missed the point that Which says:
But in this case - it is just a wrapper for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #711