MCPcopy Index your code
hub / github.com/node-js-libs/node.io / areWorkersComplete

Function areWorkersComplete

lib/node.io/process_master.js:64–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63 //Provide a method to check if workers are complete
64 var areWorkersComplete = function () {
65 if (job.pull_requests < worker_count) {
66 return false;
67 }
68 for (var i = 0; i < worker_count; i++) {
69 if (!job.worker_complete[i]) {
70 return false;
71 }
72 }
73 return true;
74 };
75
76 master.on('start', function () {
77 if (worker_count > 0) {

Callers 1

isCompleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected