@@ -146,11 +146,11 @@ public struct CheckedContinuation<T, E: Error> {
146
146
/// After `resume` enqueues the task, control is immediately returned to
147
147
/// the caller. The task will continue executing when its executor is
148
148
/// able to reschedule it.
149
- public func resume( returning x : __owned T) {
149
+ public func resume( returning value : __owned T) {
150
150
if let c: UnsafeContinuation < T , E > = canary. takeContinuation ( ) {
151
- c. resume ( returning: x )
151
+ c. resume ( returning: value )
152
152
} else {
153
- fatalError ( " SWIFT TASK CONTINUATION MISUSE: \( canary. function) tried to resume its continuation more than once, returning \( x ) ! \n " )
153
+ fatalError ( " SWIFT TASK CONTINUATION MISUSE: \( canary. function) tried to resume its continuation more than once, returning \( value ) ! \n " )
154
154
}
155
155
}
156
156
@@ -166,11 +166,11 @@ public struct CheckedContinuation<T, E: Error> {
166
166
/// After `resume` enqueues the task, control is immediately returned to
167
167
/// the caller. The task will continue executing when its executor is
168
168
/// able to reschedule it.
169
- public func resume( throwing x : __owned E) {
169
+ public func resume( throwing error : __owned E) {
170
170
if let c: UnsafeContinuation < T , E > = canary. takeContinuation ( ) {
171
- c. resume ( throwing: x )
171
+ c. resume ( throwing: error )
172
172
} else {
173
- fatalError ( " SWIFT TASK CONTINUATION MISUSE: \( canary. function) tried to resume its continuation more than once, throwing \( x ) ! \n " )
173
+ fatalError ( " SWIFT TASK CONTINUATION MISUSE: \( canary. function) tried to resume its continuation more than once, throwing \( error ) ! \n " )
174
174
}
175
175
}
176
176
}
0 commit comments