Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Update NSOperation+Operations.swift #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PSOperations/NSOperation+Operations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension NSOperation {
Add a completion block to be executed after the `NSOperation` enters the
"finished" state.
*/
func addCompletionBlock(block: Void -> Void) {
public func addCompletionBlock(block: Void -> Void) {
if let existing = completionBlock {
/*
If we already have a completion block, we construct a new one by
Expand All @@ -30,7 +30,7 @@ extension NSOperation {
}

/// Add multiple depdendencies to the operation.
func addDependencies(dependencies: [NSOperation]) {
public func addDependencies(dependencies: [NSOperation]) {
for dependency in dependencies {
addDependency(dependency)
}
Expand Down