Skip to content

Commit ec21dea

Browse files
committed
whitespace
Signed-off-by: Daniel A. Steffen <[email protected]>
1 parent 7882efb commit ec21dea

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

src/swift/Block.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ public class DispatchWorkItem {
7474
}
7575

7676
public func notify(
77-
qos: DispatchQoS = .unspecified,
78-
flags: DispatchWorkItemFlags = [],
79-
queue: DispatchQueue,
80-
execute: @escaping @convention(block) () -> ())
77+
qos: DispatchQoS = .unspecified,
78+
flags: DispatchWorkItemFlags = [],
79+
queue: DispatchQueue,
80+
execute: @escaping @convention(block) () -> ())
8181
{
8282
if qos != .unspecified || !flags.isEmpty {
8383
let item = DispatchWorkItem(qos: qos, flags: flags, block: execute)

src/swift/Queue.swift

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public extension DispatchQueue {
114114
internal func _attr(attr: dispatch_queue_attr_t?) -> dispatch_queue_attr_t? {
115115
if #available(OSX 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *) {
116116
switch self {
117-
case .inherit:
117+
case .inherit:
118118
// DISPATCH_AUTORELEASE_FREQUENCY_INHERIT
119119
return CDispatch.dispatch_queue_attr_make_with_autorelease_frequency(attr, dispatch_autorelease_frequency_t(0))
120120
case .workItem:
@@ -183,8 +183,8 @@ public extension DispatchQueue {
183183
target: DispatchQueue? = nil)
184184
{
185185
var attr = attributes._attr()
186-
if autoreleaseFrequency != .inherit {
187-
attr = autoreleaseFrequency._attr(attr: attr)
186+
if autoreleaseFrequency != .inherit {
187+
attr = autoreleaseFrequency._attr(attr: attr)
188188
}
189189
if #available(OSX 10.10, iOS 8.0, *), qos != .unspecified {
190190
attr = CDispatch.dispatch_queue_attr_make_with_qos_class(attr, qos.qosClass.rawValue.rawValue, Int32(qos.relativePriority))
@@ -218,10 +218,10 @@ public extension DispatchQueue {
218218
}
219219

220220
public func async(
221-
group: DispatchGroup? = nil,
222-
qos: DispatchQoS = .unspecified,
223-
flags: DispatchWorkItemFlags = [],
224-
execute work: @escaping @convention(block) () -> Void)
221+
group: DispatchGroup? = nil,
222+
qos: DispatchQoS = .unspecified,
223+
flags: DispatchWorkItemFlags = [],
224+
execute work: @escaping @convention(block) () -> Void)
225225
{
226226
if group == nil && qos == .unspecified && flags.isEmpty {
227227
// Fast-path route for the most common API usage
@@ -247,8 +247,8 @@ public extension DispatchQueue {
247247
}
248248

249249
private func _syncHelper<T>(
250-
fn: (@noescape () -> ()) -> (),
251-
execute work: @noescape () throws -> T,
250+
fn: (@noescape () -> ()) -> (),
251+
execute work: @noescape () throws -> T,
252252
rescue: ((Swift.Error) throws -> (T))) rethrows -> T
253253
{
254254
var result: T?
@@ -269,7 +269,7 @@ public extension DispatchQueue {
269269

270270
@available(OSX 10.10, iOS 8.0, *)
271271
private func _syncHelper<T>(
272-
fn: (DispatchWorkItem) -> (),
272+
fn: (DispatchWorkItem) -> (),
273273
flags: DispatchWorkItemFlags,
274274
execute work: @noescape () throws -> T,
275275
rescue: ((Swift.Error) throws -> (T))) rethrows -> T
@@ -280,7 +280,7 @@ public extension DispatchQueue {
280280
do {
281281
result = try work()
282282
} catch let e {
283-
error = e
283+
error = e
284284
}
285285
})
286286
fn(workItem)
@@ -306,10 +306,10 @@ public extension DispatchQueue {
306306
}
307307

308308
public func asyncAfter(
309-
deadline: DispatchTime,
310-
qos: DispatchQoS = .unspecified,
311-
flags: DispatchWorkItemFlags = [],
312-
execute work: @escaping @convention(block) () -> Void)
309+
deadline: DispatchTime,
310+
qos: DispatchQoS = .unspecified,
311+
flags: DispatchWorkItemFlags = [],
312+
execute work: @escaping @convention(block) () -> Void)
313313
{
314314
if #available(OSX 10.10, iOS 8.0, *), qos != .unspecified || !flags.isEmpty {
315315
let item = DispatchWorkItem(qos: qos, flags: flags, block: work)
@@ -321,9 +321,9 @@ public extension DispatchQueue {
321321

322322
public func asyncAfter(
323323
wallDeadline: DispatchWallTime,
324-
qos: DispatchQoS = .unspecified,
325-
flags: DispatchWorkItemFlags = [],
326-
execute work: @escaping @convention(block) () -> Void)
324+
qos: DispatchQoS = .unspecified,
325+
flags: DispatchWorkItemFlags = [],
326+
execute work: @escaping @convention(block) () -> Void)
327327
{
328328
if #available(OSX 10.10, iOS 8.0, *), qos != .unspecified || !flags.isEmpty {
329329
let item = DispatchWorkItem(qos: qos, flags: flags, block: work)

0 commit comments

Comments
 (0)