all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/env tclsh
|
||||
set count 0
|
||||
proc process val {
|
||||
puts $val
|
||||
incr ::count
|
||||
}
|
||||
# Schedule the output of the values
|
||||
foreach val $argv {
|
||||
after [expr {$val * 10}] [list process $val]
|
||||
}
|
||||
# Run event loop until all values output...
|
||||
while {$count < $argc} {
|
||||
vwait count
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue