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

Enforce module assembly happens on the main actor #203

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

skorulis-ap
Copy link
Collaborator

@skorulis-ap skorulis-ap commented Sep 30, 2024

ModuleAssembly no longer is subclassed from the Swinject Assembly type to allow the protocol definition to enforce that all registrations happen on the main actor.
This caused assemblers to have to be instantiated on the main thread, I'm not expecting any issues from this.

@skorulis-ap skorulis-ap marked this pull request as ready for review September 30, 2024 00:22
Copy link
Collaborator

@bradfol bradfol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah looks good to me! I just checked my wip branch for the specified container and had to make the same change such that ModuleAssembly no longer inherits from Swinject.Assembly 👍

@skorulis-ap skorulis-ap merged commit 9ce3064 into main Oct 1, 2024
2 checks passed
@skorulis-ap skorulis-ap deleted the skorulis/assembly-main-actor branch October 1, 2024 22:05
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