Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
Renamed [Operation].execute(in:) to [Operation].execute(by:)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexruperez committed May 9, 2018
1 parent f62eaf4 commit 7ea1311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Dispatcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ open class Dispatcher {

public extension Array where Element: Operation {
/// Execute [Operation] instance collection in OperationQueue
public func execute(in operationQueue: OperationQueue, waitUntilFinished: Bool = false) {
public func execute(by operationQueue: OperationQueue, waitUntilFinished: Bool = false) {
operationQueue.addOperations(self, waitUntilFinished: waitUntilFinished)
}

/// Execute [Operation] instance collection in Dispatcher
public func execute(in dispatcher: Dispatcher, waitUntilFinished: Bool = false) {
public func execute(by dispatcher: Dispatcher, waitUntilFinished: Bool = false) {
dispatcher.execute(self, waitUntilFinished: waitUntilFinished)
}
}
Expand Down

0 comments on commit 7ea1311

Please sign in to comment.