JS API Reference

Class: RemoteProcess

activity/exe-unit/process.RemoteProcess

RemoteProcess class representing the process spawned on the provider by activity/exe-unit/exeunit.ExeUnit.runAndStream

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new RemoteProcess(activityModule, activityResult$, activity, logger): RemoteProcess

Parameters

NameType
activityModuleActivityModule
activityResult$Observable<Result<any>>
activityActivity
loggerLogger

Returns

RemoteProcess

Defined in

src/activity/exe-unit/process.ts:30

Properties

stdout

Readonly stdout: Subject<undefined | null | string | ArrayBuffer>

Stream connected to stdout from provider process

Defined in

src/activity/exe-unit/process.ts:18


stderr

Readonly stderr: Subject<undefined | null | string | ArrayBuffer>

Stream connected to stderr from provider process

Defined in

src/activity/exe-unit/process.ts:22

Methods

waitForExit

waitForExit(timeout?): Promise<Result<any>>

Waits for the process to complete and returns the last part of the command's results as a Result object. If the timeout is reached, the return promise will be rejected.

Parameters

NameTypeDescription
timeout?numbermaximum waiting time im ms for the final result (default: 20_000)

Returns

Promise<Result<any>>

Defined in

src/activity/exe-unit/process.ts:58