AsyncCommand

public final class AsyncCommand

Output from the ‘runAsync’ methods.

  • Undocumented

    Declaration

    Swift

    public final class AsyncCommand
  • Undocumented

    Declaration

    Swift

    public final class AsyncCommand
  • Terminate process early.

    Declaration

    Swift

    public func stop ()
  • Wait for this command to finish.

    Throws

    CommandError.ReturnedErrorCode (command: String, errorcode: Int) if the exit code is anything but 0.

    Declaration

    Swift

    @discardableResult public func finish() throws -> AsyncCommand

    Return Value

    itself

  • Wait for command to finish, then return with exit code.

    Declaration

    Swift

    public func exitcode () -> Int