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

GraphIdentifier threadsafety optimization & patch interleaving race condition in Lazy resolve #523

Merged
merged 12 commits into from
Nov 2, 2022
Prev Previous commit
Next Next commit
can be let
  • Loading branch information
maxim-chipeev committed Oct 15, 2022
commit b944a44683bc0fcd7b4376c9d095fe84ebd1786d
2 changes: 1 addition & 1 deletion Sources/InstanceWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public final class Lazy<Service>: InstanceWrapper {
static var wrappedType: Any.Type { return Service.self }

private let factory: (GraphIdentifier?) -> Any?
private var graphIdentifier: GraphIdentifier?
private let graphIdentifier: GraphIdentifier?
private weak var container: Container?

init?(inContainer container: Container, withInstanceFactory factory: ((GraphIdentifier?) -> Any?)?) {
Expand Down