Creates a separate run thread (multithreading)
| Parameter | Type | Description |
|---|---|---|
| path | String | path to the file to run in the thread |
| onMessage | Function | action to complete when the thread sends a message using process.send(data) |
| onExit | Function | action to complete when the thread exits |
Semds data to the thread
| Parameter | Type | Description |
|---|---|---|
| data | Object | data to send to the thread. This message is recieved with: process.on('message', function(data)); |