AsyncCommand

public final class AsyncCommand : PrintedAsyncCommand

Output from the ‘runAsync’ commands.

  • Undocumented

    Declaration

    Swift

    public let stdout: ReadableStream
  • Undocumented

    Declaration

    Swift

    public let stderror: ReadableStream
  • Takes a closure to be called when the command has finished.

    Declaration

    Swift

    @discardableResult
    public override func onCompletion(_ handler: @escaping (AsyncCommand) -> Void) -> Self

    Parameters

    handler

    A closure taking this AsyncCommand as input, returning nothing.

    Return Value

    This AsyncCommand.