JS API Reference
Class: RemoteProcess
task/process.RemoteProcess
RemoteProcess class representing the process spawned on the provider by WorkContext.spawn
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new RemoteProcess(streamOfActivityResults
, activity
): RemoteProcess
Parameters
Name | Type |
---|---|
streamOfActivityResults | Readable |
activity | Activity |
Returns
Defined in
Properties
stdout
• Readonly
stdout: Readable
Stream connected to stdout from provider process
Defined in
stderr
• Readonly
stderr: Readable
Stream connected to stderr from provider process
Defined in
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
>>