File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -246,10 +246,10 @@ public extension DispatchQueue {
246246 private func _syncHelper< T> (
247247 fn: ( @noescape ( ) -> ( ) ) -> ( ) ,
248248 execute work: @noescape ( ) throws -> T ,
249- rescue: ( ( ErrorProtocol ) throws -> ( T ) ) ) rethrows -> T
249+ rescue: ( ( Swift . Error ) throws -> ( T ) ) ) rethrows -> T
250250 {
251251 var result : T ?
252- var error : ErrorProtocol ?
252+ var error : Swift . Error ?
253253 fn {
254254 do {
255255 result = try work ( )
@@ -269,10 +269,10 @@ public extension DispatchQueue {
269269 fn: ( DispatchWorkItem ) -> ( ) ,
270270 flags: DispatchWorkItemFlags ,
271271 execute work: @noescape ( ) throws -> T ,
272- rescue: ( ( ErrorProtocol ) throws -> ( T ) ) ) rethrows -> T
272+ rescue: ( ( Swift . Error ) throws -> ( T ) ) ) rethrows -> T
273273 {
274274 var result : T ?
275- var error : ErrorProtocol ?
275+ var error : Swift . Error ?
276276 let workItem = DispatchWorkItem ( flags: flags, noescapeBlock: {
277277 do {
278278 result = try work ( )
You can’t perform that action at this time.
0 commit comments