From 6263811e881333c69f2aa92d7d9d8c1d5b570107 Mon Sep 17 00:00:00 2001 From: sbosse Date: Tue, 27 Aug 2024 00:15:30 +0200 Subject: [PATCH] Tue 27 Aug 00:14:56 CEST 2024 --- test/test-tasks.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/test-tasks.js 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);