Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
targets: ["Lockman"])
],
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-composable-architecture", exact: "1.22.1"),
.package(url: "https://github.com/pointfreeco/swift-composable-architecture", exact: "1.22.2"),
.package(url: "https://github.com/swiftlang/swift-syntax", "509.0.0"..<"602.0.0"),
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.6.3"),
.package(url: "https://github.com/apple/swift-collections.git", from: "1.1.0"),
Expand Down
2 changes: 1 addition & 1 deletion Package@swift-6.0.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
targets: ["Lockman"])
],
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-composable-architecture", exact: "1.22.1"),
.package(url: "https://github.com/pointfreeco/swift-composable-architecture", exact: "1.22.2"),
.package(url: "https://github.com/swiftlang/swift-syntax", "509.0.0"..<"602.0.0"),
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.6.3"),
.package(url: "https://github.com/apple/swift-collections.git", from: "1.1.0"),
Expand Down
2 changes: 1 addition & 1 deletion Sources/Lockman/Composable/LockmanComposableMacros.swift
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public macro LockmanGroupCoordination() =
/// LockmanCompositeInfo2(
/// actionId: actionName,
/// lockmanInfoForStrategy1: LockmanSingleExecutionInfo(actionId: actionName, mode: .boundary),
/// lockmanInfoForStrategy2: LockmanPriorityBasedInfo(actionId: actionName, priority: 100)
/// lockmanInfoForStrategy2: LockmanPriorityBasedInfo(actionId: actionName, priority: .high(.exclusive))
/// )
/// }
/// }
Expand Down
2 changes: 1 addition & 1 deletion Sources/Lockman/Core/Debug/LockmanLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import OSLog
/// Debug logger for Lockman output.
///
/// Provides thread-safe logging functionality for lock operations.
/// Only active in DEBUG builds to avoid performance impact in production.
/// Optimized for DEBUG builds with fallback functionality in production builds.
@_spi(Logging)
public final class LockmanLogger: @unchecked Sendable {
// MARK: - Singleton
Expand Down
4 changes: 2 additions & 2 deletions Sources/Lockman/Core/Protocols/LockmanInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import Foundation
/// ## Examples
/// ```swift
/// // Single execution info
/// let singleInfo = LockmanSingleExecutionInfo(actionId: "login")
/// let singleInfo = LockmanSingleExecutionInfo(actionId: "login", mode: .boundary)
///
/// // Priority-based info
/// let priorityInfo = LockmanPriorityBasedInfo(actionId: "sync", priority: .high(.preferLater))
/// let priorityInfo = LockmanPriorityBasedInfo(actionId: "sync", priority: .high(.exclusive))
/// ```
public protocol LockmanInfo: Sendable, CustomDebugStringConvertible {
/// The strategy identifier that created this lock info.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/// func createLockmanInfo() -> LockmanCompositeInfo2<I1, I2> {
/// LockmanCompositeInfo2(
/// actionId: actionName,
/// lockmanInfoForStrategy1: LockmanSingleExecutionInfo(actionId: actionName),
/// lockmanInfoForStrategy1: LockmanSingleExecutionInfo(actionId: actionName, mode: .boundary),
/// lockmanInfoForStrategy2: LockmanPriorityBasedInfo(actionId: actionName, priority: .high(.exclusive))
/// )
/// }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Foundation
/// ```swift
/// let compositeInfo = LockmanCompositeInfo2(
/// actionId: "userLogin",
/// lockmanInfoForStrategy1: LockmanSingleExecutionInfo(actionId: "userLogin"),
/// lockmanInfoForStrategy1: LockmanSingleExecutionInfo(actionId: "userLogin", mode: .boundary),
/// lockmanInfoForStrategy2: LockmanPriorityBasedInfo(actionId: "userLogin", priority: .high(.exclusive))
/// )
/// ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
/// // Navigation leader action
/// struct NavigateToDetailAction: LockmanGroupCoordinatedAction {
/// let groupId = "navigation"
/// let coordinationRole = LockmanGroupCoordinationRole.leader(.none)
/// let coordinationRole = LockmanGroupCoordinationRole.leader(.emptyGroup)
///
/// var actionName: String { "navigateToDetail" }
/// }
Expand Down Expand Up @@ -55,7 +55,7 @@ import Foundation
/// var coordinationRole: LockmanGroupCoordinationRole {
/// switch self {
/// case .startLoading:
/// return .leader(.none)
/// return .leader(.emptyGroup)
/// case .updateProgress, .showError:
/// return .member
/// }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// let actionName = "login"
///
/// func createLockmanInfo() -> LockmanPriorityBasedInfo {
/// priority(.high(.preferLater))
/// priority(.high(.exclusive))
/// }
/// }
/// ```
Expand Down Expand Up @@ -53,7 +53,7 @@ extension LockmanPriorityBasedAction {
/// Example usage:
/// ```swift
/// func createLockmanInfo() -> LockmanPriorityBasedInfo {
/// priority(.high(.preferLater))
/// priority(.high(.exclusive))
/// }
/// ```
public func priority(_ priority: LockmanPriorityBasedInfo.Priority) -> LockmanPriorityBasedInfo {
Expand All @@ -74,7 +74,7 @@ extension LockmanPriorityBasedAction {
/// Example usage:
/// ```swift
/// func createLockmanInfo() -> LockmanPriorityBasedInfo {
/// priority("_user123", .high(.preferLater))
/// priority("_user123", .high(.exclusive))
/// }
/// ```
public func priority(
Expand Down
Loading