cluster-worker

This is an object passed to the cluster worker. A cluster worker should be structured:

module.exports=(worker)=>{};

new virtuosity.multiThreading.cluster-worker();


Parameter Type Description

Methods

Properties


Methods

output

Sends output back to the thread. Can be called as many times a you would like.

virtuosity.multiThreading.cluster-worker.output();


Properties

input

Any

input to the cluster-worker

virtuosity.multiThreading.cluster-worker.input

id

Int

id of the cluster-worker

virtuosity.multiThreading.cluster-worker.id

pid

Int

pid of the cluster-worker

virtuosity.multiThreading.cluster-worker.pid