how do I end a warp that was caused by ![]()
why not just use
?
I wanted to create something like ![]()
i don’t think you can stop a warp, you can use:
![]()
not the same purpose, if you use warp to speedup a process, maybe it couls be useful
Give us a concrete example of how you would like to use it.
I don’t think that works because it warps the entire script
the second forever loop catch tag script that you made lags
do you want terminate the forever loop if it got 100 or just exit and and loop again ?
Is this a real script or an example, because i don’t understand why yo need to cancel the warp…
Why would you want to force a yield? Warps are supposed to happen instantly!
It should be doable by a ![]()
Unfortunately, it deliberately, for no apparent reason, does not yield inside warp.
A relatively simple way to force yield.
Result
But I assume you are looking for a plain
solution.
The try/catch suggested by @loucheman seems to be the best solution, but it’s not stackable.
A similar result you may get wrapping code into the custom block, say “abortable”. This allows breaking out of the loop/warp/code block
.
BTW: it seems that the continuation does not capture the warped (atomic) state.









