How to kill a thread, stop a promise execution in Raku
问题 I am looking for a wait to stop (send an exception) to a running promise on SIGINT . The examples given in the doc exit the whole process and not just one worker. Does someone know how to "kill", "unschedule", "stop" a running thread ? This is for a p6-jupyter-kernel issue or this REPL issue. Current solution is restarting the repl but not killing the blocked thread await Promise.anyof( start { ENTER $running = True; LEAVE $running = False; CATCH { say $_; reset; } $output := self.repl-eval(