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 iobates
11 hours ago
tcl by iobates
1 days ago
tcl by juliannoble2
11 days ago
tcl by juliannoble2
13 days ago
tcl by oldlaptop
21 days ago
tcl by oldlaptop
21 days ago
tcl by oldlaptop
21 days ago
tcl by oldlaptop
21 days ago
tcl by apn
36 days ago
tcl by arjen
50 days ago
Submit
New paste
Documentation
From Jabber