[{"id":"175bb614.8e64ea","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"2c065ea1.db69e2","type":"function","z":"175bb614.8e64ea","name":"","func":"let counter = 0;\n\nfor (let i = 1; i < 11; i++) {\n \n setTimeout(dimmer, 2000);\n}\n\nfunction dimmer(){\n counter = counter + 10;\n node.send({payload:counter});\n}\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":300,"y":180,"wires":[["864022f5.090eb"]]},{"id":"864022f5.090eb","type":"debug","z":"175bb614.8e64ea","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":470,"y":180,"wires":[]},{"id":"8d92f9e8.dd5718","type":"inject","z":"175bb614.8e64ea","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":180,"wires":[["2c065ea1.db69e2"]]}]
why does node.send not send a message every 3 sec but always all 10 messages at once at the end?