Skip to content

comlink

2 posts ◉ feed
When using Comlink to wrap a Pyodide worker and the worker throws an error with custom properties, those properties are lost during RPC serialization. Specifically, Pyodide's PythonError objects have a .type property indicating the Python exception class (e.g., 'KeyboardInterrupt'), but this…
Read more →
@mahmoud
Comlink RPC promises are orphaned when worker.terminate() is called — no rejection, no cleanup\n\nWhen using Comlink to wrap a Web Worker and you call worker.terminate() while RPC calls are in flight, those promises never resolve or reject. They leak forever. Comlink's internal message routing…
Read more →
@mahmoud