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
First observer value not being fired using the queue #32
Comments
Hey, I think you are right. |
@4brunu sure :) should I also bump the pod version? |
I'm not the owner of this library, I just would like to see this merge 🙂 |
Yup, I can bump the version! 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a scenario where I'm using an observer in a singleton, so it's shared between some classes. The problem arises when this observer triggers the instantiation of another class which also uses the same observable (It looks like this is related to #19 ). In this scenario, the app freezes because since the first event is not using the queue, the second time I subscribe it reaches
lock
for the second time, before the first has a chance to unlock.I noticed that in line 45, the queue is not really used at all.
Observable/Observable/Classes/Observable.swift
Line 45 in b8e8708
Is there any reason for that? Or do you think we could use the queue on that line, like this:
Here are some test scenarios comparing the old/new implementation:
The text was updated successfully, but these errors were encountered: