info coroutine
Gives the full name of the running coroutine.
info coroutine
Description
Gives the full name of the command of the coroutine whose code runs, or an empty string outside each coroutine.
Returns
A command name, or an empty string.
Examples
% info coroutine
% coroutine co apply {{} {yield [info coroutine]}}
::co
Errors
% info coroutine x
wrong # args: should be "info coroutine"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1