diff --git a/test/test-tasks.js b/test/test-tasks.js new file mode 100644 index 0000000..f8b4039 --- /dev/null +++ b/test/test-tasks.js @@ -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);