Tue 27 Aug 00:14:56 CEST 2024
This commit is contained in:
parent
5b883273cd
commit
6263811e88
13
test/test-tasks.js
Normal file
13
test/test-tasks.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
function task(id,counter) {
|
||||||
|
print(id,counter)
|
||||||
|
if (counter==2) kill(id)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function task(id,counter) {
|
||||||
|
print(id,counter)
|
||||||
|
return counter < 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
var handle1 = later(1000,task);
|
||||||
|
var handle2 = later(1000,task);
|
Loading…
Reference in New Issue
Block a user