-
Notifications
You must be signed in to change notification settings - Fork 6
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
Switch to sync code (again) #418
Comments
I've been thinking about this one a bit more and maybe it's not necessary. We can always use something like pollster to block on an async function which lets us adapt the async interface to be sync. This should allow current RS consumers to use the client without changing too much code. The other issue is that some consumers don't want app-services components to startup threads. I can see 2 solutions for this:
I'm going to try to test this out in an AS branch using a wrapper around the RS client. If this works, then we could consider bringing the client into app-services. Although, maybe a wrapper is fine -- especially since the app-services code is going to be moved into moz-central at some point. |
Great! Thanks for coming back to this 😊 Looking at #158, it shouldn't be too much work to revert to sync methods, since the codebase hasn't changed significantly. I will also start a branch with that work, to see how it looks |
Originally, the client was written using sync code.
It was then switch to async in #158 for a project that was killed in the mean time.
Since using a sync API is a requirement to be integrated in the application-services monorepo, let's revert and switch back to sync.
See Also
The text was updated successfully, but these errors were encountered: