Skip to content

How is cancellation managed? #23

Answered by cl4cnam
cl4cnam asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

cl4cnam
Feb 7, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by cl4cnam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant