Skip to content

Commit

Permalink
wait() on ProcessFuture & removing some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiki270 committed Jul 29, 2019
1 parent 02c8b35 commit 99284fa
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 35 deletions.
7 changes: 0 additions & 7 deletions Sources/ExecutorKit/Executor.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// Executor.swift
//
//
// Created by Ondrej Rafaj on 04/07/2019.
//

import Foundation
import NIO

Expand Down
7 changes: 0 additions & 7 deletions Sources/ExecutorKit/Exit.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// Exit.swift
//
//
// Created by Ondrej Rafaj on 17/07/2019.
//

import Foundation


Expand Down
7 changes: 0 additions & 7 deletions Sources/ExecutorKit/Exports.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// Exports.swift
//
//
// Created by Ondrej Rafaj on 17/07/2019.
//

@_exported import WebErrorKit
@_exported import protocol NIO.EventLoop
@_exported import class NIO.EventLoopFuture
Expand Down
11 changes: 11 additions & 0 deletions Sources/ExecutorKit/Extensions/ProcessFuture+NIO.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import NIO


extension ProcessFuture {

@discardableResult
public func wait() throws -> Output {
return try future.wait()
}

}
7 changes: 0 additions & 7 deletions Sources/ExecutorKit/ProcessFuture.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// ProcessFuture.swift
//
//
// Created by Ondrej Rafaj on 17/07/2019.
//

import Foundation


Expand Down
7 changes: 0 additions & 7 deletions Sources/ExecutorKit/ShellError.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// ShellError.swift
//
//
// Created by Ondrej Rafaj on 17/07/2019.
//

import Foundation
import WebErrorKit

Expand Down

0 comments on commit 99284fa

Please sign in to comment.