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
Name | Type |
---|---|
activityModule | ActivityModule |
activityResult$ | Observable <Result <any >> |
activity | Activity |
logger | Logger |
Returns
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
Name | Type | Description |
---|---|---|
timeout? | number | maximum waiting time im ms for the final result (default: 20_000) |
Returns
Promise
<Result
<any
>>
Defined in
Was this helpful?