Cooperative cancellation flag versus forced ⎕TKILL for timed worker exit
Goal: stop a long-running Dyalog APL worker thread after a bounded wait without leaving external resources, such as a ⎕NTIE file handle, in an indeterminate state. ⎕TSYNC has no documented timeout parameter, so the caller can block indefinitely while the worker runs. Constraint: a cooperative design polls a shared Boolean flag with ⎕DL between iterations, bu