Skip to content
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

Use deferred where needed instead of a load method on all registries #5112

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

Tim203
Copy link
Member

@Tim203 Tim203 commented Oct 29, 2024

Should fix an issue where the providers registry is called before the load method was called.
Instead of having a load method on all registries, only have a load method on registries that need it (e.g. ones loading resource files).

You probably noticed that a few new DeferredRegistry classes were added. This is because while DeferredRegistry technically works with any registry type, almost every (if not all) implementations of Registry have their own methods. A good example would be VersionedRegistry. Having a DeferredRegistry class for each type allows you to use the deferred variant identically to the non-deferred variant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants