Expose the task AbortSignal as `signal` in the script scope so cooperative code can cancel promptly, and re-check signal.throwIfAborted() after the script settles to discard stale results. Closes #537.
Expose the task AbortSignal as `signal` in the script scope so cooperative code can cancel promptly, and re-check signal.throwIfAborted() after the script settles to discard stale results. Closes #537.