Files
ArchiveCostWebapp/logic/node-red-data/node_modules/vasync/examples/whilst.js
T
huesser b518ae8edb
Build and Publish Site / docker (push) Successful in 23s
Workflow funktioniert nun wieder. Es gab Probleme nach Aenderungen.
ABER: Die Applikation funktioniert nur lokal. Die deployte Version geht noch nicht.
2026-07-03 13:24:08 +02:00

21 lines
409 B
JavaScript

var mod_vasync = require('../lib/vasync');
var n = 0;
var w = mod_vasync.whilst(
function testFunc() {
return (n < 5);
},
function iterateFunc(cb) {
n++;
cb(null, {n: n});
},
function whilstDone(err, arg) {
console.log('err: %j', err);
console.log('arg: %j', arg);
console.log('w (end): %j', w);
}
);
console.log('w (start): %j', w);