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
tcl by schelte
8 days ago
tcl by emiliano
16 days ago
tcl by fvogel
16 days ago
tcl by emiliano
16 days ago
tcl by rmax
33 days ago
tcl by oldlaptop
33 days ago
tcl by schelte
33 days ago
tcl by Bradipo
46 days ago
tcl by kbk
56 days ago
tcl by oldlaptop
59 days ago
Submit
New paste
Documentation
From Jabber