summaryrefslogtreecommitdiff
path: root/shared_counter.kpl
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-06-18 10:01:56 -0400
committernodist <kevin.comas.git@gmail.com>2026-06-18 10:01:56 -0400
commit3e5334df0e830c2b143a807ffe5b866a08b6f3d4 (patch)
treeeaf189588fda6647c295f3d19c9059eb678f3f83 /shared_counter.kpl
parent4f132dc241f0e9fd0babd34ebf1767e4916fac7c (diff)
use Array as data list type
Diffstat (limited to 'shared_counter.kpl')
-rw-r--r--shared_counter.kpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared_counter.kpl b/shared_counter.kpl
index f9ae293..0fdf804 100644
--- a/shared_counter.kpl
+++ b/shared_counter.kpl
@@ -27,7 +27,7 @@ runner : ([fn]
total : actions
@ total {
`log "#WHITE#Batch: #CYAN#% #MAGENTA#%#\n" `format (fn; total)
- v : Vector[`async_type fn] $ ()
+ v : Array[`async_type fn] $ ()
@ 1 .. batch { v `push `async fn }
@ v {[x] `await x }
total -: batch
@@ -37,7 +37,7 @@ runner : ([fn]
i : runner `async inc
d : runner `async dec
-`log `format "#YELLOW#SLEEPING...#\n"
+`log "#BOLD#YELLOW#SLEEPING THREAD %#\n" `format `thread_id
`use "time" [Seconds]
`use "sys" [sleep]