limit rate a procedure is called
Posted to
tcl
by kbk at Sun Apr 01 01:15:00 GMT 2012
view raw
proc
something {} {
variable
tooSoon
if
{[
info
exists tooSoon]} {
return
}
set
tooSoon [
after
5000 cleanup]
# ... do something ...
}
proc
cleanup {} {
variable
tooSoon
unset
tooSoon
}
Recent Posts
junk by bcharder
27 days ago
tcl by egavilan
36 days ago
tcl by Stu
38 days ago
tcl by Stu
38 days ago
tcl by oldlaptop
71 days ago
tcl by oldlaptop
71 days ago
tcl by Molnija Bjornsson
76 days ago
tcl by Molnija Bjornsson
76 days ago
tcl by zmoment
76 days ago
tcl by zmoment
76 days ago
Submit
New paste
Documentation
From Jabber