Enumerationswift 6.0.3Foundation
TerminationReason
enum TerminationReason
enum TerminationReason
import Foundation
class Process
case exit
case uncaughtSignal
override init()
static let didTerminateNotification: NSNotification.Name
class func run(_ url: URL, arguments: [String], terminationHandler: ((Process) -> Void)? = nil) throws -> Process
var arguments: [String]?
var currentDirectoryURL: URL? { get set }
var environment: [String : String]?
var executableURL: URL? { get set }
var isRunning: Bool { get }
var processIdentifier: Int32 { get }
var qualityOfService: QualityOfService
var standardError: Any? { get set }
var standardInput: Any? { get set }
var standardOutput: Any? { get set }
var terminationHandler: ((Process) -> Void)?
var terminationReason: Process.TerminationReason { get }
var terminationStatus: Int32 { get }
func interrupt()
func resume() -> Bool
func run() throws
func suspend() -> Bool
func terminate()
func waitUntilExit()
class func launchedProcess(launchPath path: String, arguments: [String]) -> Process
var currentDirectoryPath: String { get set }
var launchPath: String? { get set }
func launch()
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init?(rawValue: Int)
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)