-
Notifications
You must be signed in to change notification settings - Fork 0
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
Async dependency injection support #16
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I have just some final minor comments.
@@ -26,8 +26,7 @@ let package = Package( | |||
], | |||
dependencies: [ | |||
// Dependencies declare other packages that this package depends on. | |||
.package(url: "https://github.com/strvcom/ios-dependency-injection.git", from: "1.0.2") | |||
], | |||
.package(url: "[email protected]:strvcom/ios-dependency-injection.git", from: "1.0.4") ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.package(url: "[email protected]:strvcom/ios-dependency-injection.git", from: "1.0.4") ], | |
.package(url: "[email protected]:strvcom/ios-dependency-injection.git", from: "1.0.4") | |
], |
guard let self = self else { | ||
return | ||
} | ||
try? await Task.sleep(for: .seconds(delayTime)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the delayTime
? Is it possible to reduce to milliseconds at least in some cases?
// #if canImport(DependencyInjection) | ||
// await self?.container.releaseSharedInstances() | ||
// #endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove or uncomment.
Goals ⚽