| Ticket UUID: | e68d7234df8500db40defb61b7831397d73dfcce | ||
| Title: | [time] is not yieldable | ||
| Type: | Bug | Created on: | 2021-11-16 22:43:33 |
| Submitter: | mjanssen | Assigned to: | nobody |
| Subsystem: | 60. NRE and coroutines | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2021-11-16 22:43:33 |
| Status: | Open | Closed by: | nobody |
| Resolution: | None | Closed on: | |
| Version: | |||
| Description: | ||||
|
The [time] command is not yieldable. For one this makes [time] unsuitable as a poor man's repeat in a coroutine. Example:
% proc testcmd {} {yield ; time {yield ok} 1 }
% coroutine test testcmd
% test
cannot yield: C stack busy
| ||||
