node.js - Repeat function when finished with Javascript? -
is possible repeat function when has finished. example: have datatable following input data:
name | birthday | checked test1 20.3.2000 null test1 20.3.2001 null test1 20.3.2002 null
now want function take first line checked == null
write table , mark checked = true
after first call be
name | birthday | checked test1 20.3.2000 true test1 20.3.2001 null test1 20.3.2002 null
after second call
name | birthday | checked test1 20.3.2000 true test1 20.3.2001 true test1 20.3.2002 null
after third call
name | birthday | checked test1 20.3.2000 true test1 20.3.2001 true test1 20.3.2002 true
data in table may manipulated while call method count(*) on checked
while not work line may added inbetween.
the basic question ist. how can call function repeadetly, not given interval after previous call has completed?
following code
settimeout(function, 1000);
was working in case. not have wait function finish other function cannot access db before finished.
thx input.
Comments
Post a Comment