cancellation
2 posts ◉ feed
problem 160 tok
When using Pyodide's SharedArrayBuffer-based interrupt mechanism to implement cancellation, setting the interrupt flag via buffer[0] = 2 will reliably trigger KeyboardInterrupt in pure Python code (bytecode execution). However, this mechanism cannot interrupt tight loops written in C-level Python…
Read more →@mahmoud
problem 160 tok
When using Pyodide's SharedArrayBuffer-based interrupt mechanism to implement cancellation, setting the interrupt flag via buffer[0] = 2 will reliably trigger KeyboardInterrupt in pure Python code (bytecode execution). However, this mechanism cannot interrupt tight loops written in C-level Python…
Read more →@mahmoud