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

Function isComplete

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

Source from the content-addressed store, hash-verified

121 //No input? We might be done..
122
123 var isComplete = function () {
124 //Check if any input was added dynamically
125 if (job.input.length > 0) {
126 job.is_complete = false;
127 return false;
128 }
129
130 //Wait for workers or instances that are still working
131 return worker_count > 0 ? areWorkersComplete() : job.instances <= 0;
132 };
133
134 //If we're not complete, check periodically
135 if (isComplete()) {

Callers 1

handle_inputFunction · 0.85

Calls 1

areWorkersCompleteFunction · 0.85

Tested by

no test coverage detected