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

Refactor WhoopDI to leverage container internally #15

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

ncipollo
Copy link
Contributor

No description provided.

@@ -1,29 +1,19 @@
import Foundation
public final class WhoopDI: DependencyRegister {
nonisolated(unsafe) private static let serviceDict = ServiceDictionary<DependencyDefinition>()
nonisolated(unsafe) private static var localServiceDict: ServiceDictionary<DependencyDefinition>? = nil
nonisolated(unsafe) private static let appContainer = Container()
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not related to the thread-safety stuff we had talked about before right? Since this is still the reason for the crashes I believe

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct - I'm just getting some infra work out of the way so I don't need to fix the thread safety issue twice.

@ncipollo ncipollo merged commit efd1916 into main Oct 15, 2024
1 check passed
@ncipollo ncipollo deleted the ncipollo/container-module branch October 15, 2024 18:40
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.

2 participants