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 {
246
246
private func _syncHelper< T> (
247
247
fn: ( @noescape ( ) -> ( ) ) -> ( ) ,
248
248
execute work: @noescape ( ) throws -> T ,
249
- rescue: ( ( ErrorProtocol ) throws -> ( T ) ) ) rethrows -> T
249
+ rescue: ( ( Swift . Error ) throws -> ( T ) ) ) rethrows -> T
250
250
{
251
251
var result : T ?
252
- var error : ErrorProtocol ?
252
+ var error : Swift . Error ?
253
253
fn {
254
254
do {
255
255
result = try work ( )
@@ -269,10 +269,10 @@ public extension DispatchQueue {
269
269
fn: ( DispatchWorkItem ) -> ( ) ,
270
270
flags: DispatchWorkItemFlags ,
271
271
execute work: @noescape ( ) throws -> T ,
272
- rescue: ( ( ErrorProtocol ) throws -> ( T ) ) ) rethrows -> T
272
+ rescue: ( ( Swift . Error ) throws -> ( T ) ) ) rethrows -> T
273
273
{
274
274
var result : T ?
275
- var error : ErrorProtocol ?
275
+ var error : Swift . Error ?
276
276
let workItem = DispatchWorkItem ( flags: flags, noescapeBlock: {
277
277
do {
278
278
result = try work ( )
You can’t perform that action at this time.
0 commit comments