Ah yes, that seems to do the trick. That works well for a limited for
-loop. Would you know how to properly kill it assuming the for
-loop is replaced by a while flag
-loop ? I found Stop/terminate a (sub)task started with @async - #16 by attdona but I could not scope things properly.