Add isInterrupted() BIF

Description

In CommandBox, I'll call code like this a lot so I can detect if a user has pressed Ctrl-C and I can stop the current task:

The issue is calling this over and over in a loop can add up performance-wise due to the overhead of the reflection calls. It would be nice to have a BIF that would return true/false that did the same check for me. If I pass nothing to the BIF, I'd want it to use the current thread like I showed above:

And I'd also want to be able to pass in an explicit thread for the check:

Status

Assignee

Unassigned

Reporter

Brad Wood

Labels

Priority

New
Configure