diff --git a/Source/Dispatcher.swift b/Source/Dispatcher.swift index c2bdbda..d9d68be 100755 --- a/Source/Dispatcher.swift +++ b/Source/Dispatcher.swift @@ -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) } }