Skip to content

Commit

Permalink
docs: provide correct description for HIDEventReceiverClosure
Browse files Browse the repository at this point in the history
  • Loading branch information
Akazm committed Dec 18, 2024
1 parent f4f1b22 commit d906dce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/TapGuard/HIDEventReceiver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ public protocol DisposableHIDEventReceiver: Sendable {
var remove: @Sendable () -> Void { get }
}

/// Wraps a closure acting as a ``HIDEventDispatcher``
///
/// See also: ``HIDEventReceiver``
/// Encapsulates a closure - conforming to either ``HIDEventProcessor/sync(_:)`` or ``HIDEventProcessor/async(_:)`` argument signature -
/// in a ``HIDEventReceiver``
public final class HIDEventReceiverClosure: DisposableHIDEventReceiver, MutableHIDEventReceiver {
private let eventReceiverPriority: AllocatedUnfairLock<UInt64> = .init(initialState: .init(UInt32.max))
private let eventReceiverEnabled: AllocatedUnfairLock<Bool> = .init(initialState: true)
Expand Down

0 comments on commit d906dce

Please sign in to comment.