From f107ce7b7fa5edaa5f7b2c1a6bb421ba929cd907 Mon Sep 17 00:00:00 2001 From: NachoSoto Date: Fri, 20 Jan 2017 15:05:15 -0800 Subject: [PATCH] Fix the fixits for dispatch_async and dispatch_group_async They erroneously suggested `DispatchQueue.asynchronously`, but it's actually `DispatchQueue.async`. --- stdlib/public/SDK/Dispatch/Private.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/public/SDK/Dispatch/Private.swift b/stdlib/public/SDK/Dispatch/Private.swift index ffd5402f0b59b..fe0a9289643df 100644 --- a/stdlib/public/SDK/Dispatch/Private.swift +++ b/stdlib/public/SDK/Dispatch/Private.swift @@ -108,7 +108,7 @@ public func dispatch_data_copy_region(_ data: __DispatchData, _ location: Int, _ fatalError() } -@available(*, unavailable, renamed:"DispatchQueue.asynchronously(self:group:qos:flags:execute:)") +@available(*, unavailable, renamed:"DispatchQueue.async(self:group:qos:flags:execute:)") public func dispatch_group_async(_ group: DispatchGroup, _ queue: DispatchQueue, _ block: () -> Void) { fatalError() @@ -144,7 +144,7 @@ public func dispatch_apply(_ iterations: Int, _ queue: DispatchQueue, _ block: ( fatalError() } -@available(*, unavailable, renamed:"DispatchQueue.asynchronously(self:execute:)") +@available(*, unavailable, renamed:"DispatchQueue.async(self:execute:)") public func dispatch_async(_ queue: DispatchQueue, _ block: () -> Void) { fatalError()