@@ -75,11 +75,10 @@ public struct RetryAction<Duration: DurationProtocol> {
75
75
/// }
76
76
/// ```
77
77
@available ( iOS 16 . 0 , macCatalyst 16 . 0 , macOS 13 . 0 , tvOS 16 . 0 , visionOS 1 . 0 , watchOS 9 . 0 , * )
78
- @inlinable public func retry< Result, ErrorType, ClockType> (
78
+ @inlinable nonisolated ( nonsending ) public func retry< Result, ErrorType, ClockType> (
79
79
maxAttempts: Int ,
80
80
tolerance: ClockType . Instant . Duration ? = nil ,
81
81
clock: ClockType ,
82
- isolation: isolated ( any Actor ) ? = #isolation,
83
82
operation: ( ) async throws ( ErrorType ) -> Result ,
84
83
strategy: ( ErrorType ) -> RetryAction < ClockType . Instant . Duration > = { _ in . backoff( . zero) }
85
84
) async throws -> Result where ClockType: Clock , ErrorType: Error {
@@ -151,10 +150,9 @@ public struct RetryAction<Duration: DurationProtocol> {
151
150
/// }
152
151
/// ```
153
152
@available ( iOS 16 . 0 , macCatalyst 16 . 0 , macOS 13 . 0 , tvOS 16 . 0 , visionOS 1 . 0 , watchOS 9 . 0 , * )
154
- @inlinable public func retry< Result, ErrorType> (
153
+ @inlinable nonisolated ( nonsending ) public func retry< Result, ErrorType> (
155
154
maxAttempts: Int ,
156
155
tolerance: ContinuousClock . Instant . Duration ? = nil ,
157
- isolation: isolated ( any Actor ) ? = #isolation,
158
156
operation: ( ) async throws ( ErrorType ) -> Result ,
159
157
strategy: ( ErrorType ) -> RetryAction < ContinuousClock . Instant . Duration > = { _ in . backoff( . zero) }
160
158
) async throws -> Result where ErrorType: Error {
0 commit comments