ztcl::meter delete
Removes a meter.
ztcl::meter delete NAME
Description
Removes the name NAME. A thread that counts in the meter goes on to count in it until the thread ends.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| NAME | string | required | The name of a meter. |
Returns
An empty string.
Examples
Each example of this page runs after package require ztcl::json.
% ztcl::meter create a
> ztcl::meter create b
> ztcl::meter delete a
> ztcl::meter list
b
Errors
% ztcl::meter delete nope
no meter "nope"
-errorcode ZTCL METER NAME
% ztcl::meter delete a b
wrong # args: should be "ztcl::meter delete name"
-errorcode TCL WRONGARGS
Facts
- Capability
meter. A new interpreter does not have it until the host turns it on.- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1