Constructor
new Cluster(file, id)
- Source:
Properties:
Name | Type | Description |
---|---|---|
worker |
ChildProcess | The child process being handled |
Creates a new Cluster instance
Parameters:
Name | Type | Description |
---|---|---|
file |
String | Path to file to run |
id |
Number | ID of the cluster |
Methods
awaitResponse(message) → {Promise.<Object>}
- Source:
Awaits for a certain response
Parameters:
Name | Type | Description |
---|---|---|
message |
String | Message to send |
Returns:
- Type
- Promise.<Object>