-
How can a task be cancel? |
Beta Was this translation helpful? Give feedback.
Answered by
cl4cnam
Feb 7, 2023
Replies: 1 comment
-
Cancellation of FuncSug codeAll block Cancellation of JavaScript codeFor cancellation of incorporated JavaScript code, the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cl4cnam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cancellation of FuncSug code
All block
{...}
can be aborted by labelling the block (with@label
) and issue.break blockLabel
.Internally, when labelled, the block is then surrounded by a "cancellableExec" instruction.
At each "micro-step", the "cancellableExec" instructions are verified and the cancellation is propagated to all the descendants.
Cancellation of JavaScript code
For cancellation of incorporated JavaScript code, the
ext
instruction has an optional parameter to specify what to do to "rewind" this JavaScript code.