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 bch
3 days ago
tcl by Bradipo
4 days ago
tcl by aspect
4 days ago
tcl by Bradipo
4 days ago
tcl by Bradipo
4 days ago
tcl by Bradipo
4 days ago
lilypond by Bradipo
5 days ago
tcl by cgm
15 days ago
tcl by dandyn
24 days ago
tcl by Stu
25 days ago
Submit
New paste
Documentation
From Jabber