Skip to content

Commit

Permalink
Remove unnecessary @unchecked Sendable. (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw authored Jan 21, 2025
1 parent 15a98be commit ddcd641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftNavigation/Observe.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ private func onChange(
/// }
/// }
/// ```
public final class ObserveToken: @unchecked Sendable, HashableObject {
public final class ObserveToken: Sendable, HashableObject {
fileprivate let _isCancelled = LockIsolated(false)
public var onCancel: @Sendable () -> Void
public let onCancel: @Sendable () -> Void

public var isCancelled: Bool {
_isCancelled.withValue { $0 }
Expand Down

0 comments on commit ddcd641

Please sign in to comment.