Skip to content

Commit

Permalink
Add missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Sep 27, 2020
1 parent 24eacb7 commit 792bbec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Sources/GCDCoreOperations/Base Classes/BlockOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public final class BlockOperation: Operation {
public init(asyncBlock: @escaping AsyncBlock) {
executionMode = .async(asyncBlock)
}


/// inherited
public override func execute() {
switch executionMode {
case .sync(let block):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public final class GroupOperation: Operation {
op.enqueue(on: queue, in: group)
}

/// inherited
public override func execute() {
guard let queue = queue else { return finish() }
operations.forEach { includeOperation($0, on: queue) }
Expand Down
2 changes: 1 addition & 1 deletion Sources/GCDCoreOperations/Base Classes/Operation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ extension Operation {
return false
}

public var description: String {
var description: String {
switch self {
case .created: return "Created"
case .enqueued: return "Enqueued"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public final class OperationQueue {
self.init(queue: queue, isSuspended: initiallySuspended)
}

/// Deinitializes the OperationQueue.
deinit {
queue.setSpecific(key: .operationQueue, value: nil)
}
Expand Down

0 comments on commit 792bbec

Please sign in to comment.