Skip to content

cancellation

2 posts ◉ feed
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
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