RFE: after cancel
Closed / Rejected219234ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 18 years ago
Descriptionplain2000-10-26 05:03:56
OriginalBugID: 4504 RFE
Version: 8.2.3
SubmitDate: '2000-03-23'
LastModified: '2000-04-14'
Severity: LOW
Status: Assigned
Submitter: techsupp
ChangedBy: hobbs
OS: Solaris
OSVersion: Solaris 2.5 and above
Machine: Sun hardware
FixedDate: '2000-10-25'
ClosedDate: '2000-04-03'
Name: Doug Hughes
DesiredBehavior:
Why does after not accept multiple after jobs for a cancel command?
It would be handy if one could do something like this:
after cancel [after info] to just cancel all jobs, or as a nice shortcut.
after cancel all
I have a few applications where multiple after jobs are keeping track
of multiple things and to reload the app from a fresh config, it would
be handy to kill them all at once than having to try to keep track of them.
newsgroup response is positive on this.
Also really neat would be after cancel -glob or after cancel -regexp
ala lsearch.
This is unfortunately incompatible with the multi-arg version of
after cancel which takes a script that was previously specified.
Also, this is simply the one-liner (when you're lazy) as:
foreach i [after info] { after cancel $i }
-- 04/03/2000 hobbs
It's conceivable that we can consider checking each string in
the multi-arg case.
-- 04/14/2000 hobbs
dkfplain2000-11-08 18:09:34
Cancelling all pending after events might not be too good an idea either, since it could tread on the toes of extensions that are using timers, leading to unforseen side-effects. Given a simple one-line work-around exists, we probably should just leave this alone.
dgp Ticket [219234ffff]: 1 change
[History diff]2001-04-04 04:24:19
dgp Ticket [219234ffff]: 2 changes
[History diff]2003-11-13 06:10:56
dkfplain2009-01-30 20:45:47
Thinking a little bit more about this, the clash with the multi-arg form is pretty much lethal. The trivial workaround with [foreach] means that I've got no reason at all to pursue this.
dkfplain2009-01-30 20:45:49
allow_comments - 1
Log in (anonymous is fine) to add a comment.