-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add missing delayed readiness service handling to ServiceRegistry #560
Comments
@bit-shifter, did you end up doing this for us? If not, how have you worked around this problem in CaplinTrader? |
CT is still using their ServiceRegistry which has the method. We are having the same issue and anyone using, for instance, Permissioning & SLJS services would need this. @bit-shifter suggested I patch the BRJS ServiceRegistry with the method, unfortunately the initialiseServices adds dependencies to DelayedReadinessService which is not in BRJS at present time, hence this would not be a viable patch to be pulled back. For now, I just copied the content of the method into our Bootstrap class, once a way to handle this is added to BR, we will switch over. |
@dchambers Apologies for the late response on this one.. The method has not been ported into brjs, I don't believe that this is the correct thing to do longer term. A better implementation to satisfy async service issue would be one that uses promises. |
I've just spoken to the CT team about this, and there are a couple of issues with the current approach:
Instead, for BRJS we'd like to do the following:
At this point, it becomes clear that we actually don't need a |
@dchambers Is this something we should aim to add for 1.0? |
This issue has been superseded by #1128. |
The pre-OSS version of
ServiceRegistry
catered for delayed readiness services (services that are either async or have a dependency on an async service).This was previously handled via method
#initialiseServices
, which doesn't appear to have been ported across during the migration.The text was updated successfully, but these errors were encountered: