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
2 days ago
tcl by mookie
5 days ago
tcl by sebres
7 days ago
tcl by iobates
24 days ago
tcl by iobates
24 days ago
tcl by iobates
24 days ago
tcl by FLORENTIS
28 days ago
tcl by Florentis
28 days ago
tcl by schelte
33 days ago
tcl by iobates
33 days ago
Submit
New paste
Documentation
From Jabber