Skip to content

Commit

Permalink
Mention thread safety
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed committed Dec 1, 2023
1 parent 6af069d commit 1dfce4c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Sources/SafeDI/LazyForwardingInstantiator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/// `@Forwarded` properties. This class enables instantiation with specific arguments, facilitating
/// the inheritance of these arguments by `@Instantiable` types that are `@Instantiated` within
/// the `InstantiableType`, as well as by all types `@Instantiated` downstream.
/// Instantiation is thread-safe.
///
/// - SeeAlso: `LazyInstantiator`
/// - Note: This class is the sole means for instantiating an `@Instantiable` type with `@Forwarded`
Expand Down
2 changes: 1 addition & 1 deletion Sources/SafeDI/LazyInstantiated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import Foundation

/// Marks a SafeDI dependency that is instantiated on first access.
/// Marks a SafeDI dependency that is instantiated on first access. Thread-safe.
@propertyWrapper public final class LazyInstantiated<InstantiableType> {

// MARK: Initialization
Expand Down
2 changes: 1 addition & 1 deletion Sources/SafeDI/LazyInstantiator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// A SafeDI dependency responsible for the lazy instantiation of an `@Instantiable` type.
/// This class facilitates the delayed creation of an `@Instantiable` instance, making it particularly
/// useful in scenarios where immediate instantiation is not necessary or desirable. `LazyInstantiator`
/// facilitates control over memory usage and enables just-in-time instantiation.
/// facilitates control over memory usage and enables just-in-time instantiation. Instantiation is thread-safe.
///
/// - SeeAlso: `LazyForwardingInstantiator`
public final class LazyInstantiator<InstantiableType> {
Expand Down

0 comments on commit 1dfce4c

Please sign in to comment.