diff --git a/Sources/STTextViewCommon/Utilities/Throttler/Actor/Throttler.swift b/Sources/STTextViewCommon/Utilities/Throttler/Actor/Throttler.swift index 4c20960..2bc6901 100644 --- a/Sources/STTextViewCommon/Utilities/Throttler/Actor/Throttler.swift +++ b/Sources/STTextViewCommon/Utilities/Throttler/Actor/Throttler.swift @@ -8,7 +8,7 @@ import Foundation /// Options for debouncing an operation. -public enum DebounceOptions { +package enum DebounceOptions { /// The default debounce behavior. case `default` /// Run the operation immediately and debounce subsequent calls. @@ -16,14 +16,14 @@ public enum DebounceOptions { } /// Options for throttling an operation. -public enum ThrottleOptions { +package enum ThrottleOptions { /// The default throttle behavior. case `default` /// Guarantee that the last call is executed even if it's after the throttle time. case ensureLast } -public enum ActorType { +package enum ActorType { case currentActor case mainActor diff --git a/Sources/STTextViewCommon/Utilities/Throttler/debounce.swift b/Sources/STTextViewCommon/Utilities/Throttler/debounce.swift index 95c4867..78080f9 100644 --- a/Sources/STTextViewCommon/Utilities/Throttler/debounce.swift +++ b/Sources/STTextViewCommon/Utilities/Throttler/debounce.swift @@ -49,7 +49,7 @@ import Foundation - DebounceOptions: Enum that defines various options for controlling debounce behavior. */ -public func debounce( +package func debounce( _ duration: TimeInterval = 1.0, identifier: String = "\(Thread.callStackSymbols)", by `actor`: ActorType = .mainActor, diff --git a/Sources/STTextViewCommon/Utilities/Throttler/delay.swift b/Sources/STTextViewCommon/Utilities/Throttler/delay.swift index 0de618f..049a38f 100644 --- a/Sources/STTextViewCommon/Utilities/Throttler/delay.swift +++ b/Sources/STTextViewCommon/Utilities/Throttler/delay.swift @@ -33,7 +33,7 @@ import Foundation ``` */ -public func delay( +package func delay( _ duration: TimeInterval = 1.0, by `actor`: ActorType = .mainActor, operation: @escaping () -> Void diff --git a/Sources/STTextViewCommon/Utilities/Throttler/throttle.swift b/Sources/STTextViewCommon/Utilities/Throttler/throttle.swift index 0c99ab1..36c8c68 100644 --- a/Sources/STTextViewCommon/Utilities/Throttler/throttle.swift +++ b/Sources/STTextViewCommon/Utilities/Throttler/throttle.swift @@ -50,7 +50,7 @@ import Foundation */ -public func throttle( +package func throttle( _ duration: TimeInterval = 1.0, identifier: String = "\(Thread.callStackSymbols)", by `actor`: ActorType = .mainActor,