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
Fix: check if authCallback is running on a background queue #536
Conversation
- interacting with certain frameworks like UIKit, we need to ensure that all calls happen from the main thread.
@ricardopereira does this PR fix #531? |
@mattheworiordan Yes. I reproduced the issue and now it's working. |
BTW, for the record:
The |
I'm not sure this solves the problem as generally as it could. What's so special about |
You're right.
I don't have an answer. What I know is that the @tcard After I opened the PR I started thinking on generalising the solution. I though checking every callback that is accessible by the user (like, |
Sure, sounds better to me. Although honestly I'm flying a bit blind here, I don't really know how GCD works, etc. so you'll probably know better. Just please let's avoid duplicating code as we do here, we can put this if-else logic in a generic function that takes a block. |
6314e9d
to
cb87476
Compare
cb87476
to
f0d0625
Compare
@ricardopereira Is there anything missing here? |
@tcard No, it's done. |
@ricardopereira Cool, thanks. I still don't get what's special about authCallback, but well... |
#531