framework icon indicating copy to clipboard operation
framework copied to clipboard

Web worker code blocks

Open Fil opened this issue 1 year ago • 1 comments

A js or ts code block could have an option that moves it to a web worker.

It might not be guaranteed to work (inputs and outputs must be serializable, among other constraints), but when it can work, it would be nice to make it as easy as adding a worker=true option.

Ref. https://observablehq.com/@fil/worker

Fil avatar Nov 11 '23 14:11 Fil

Jason Miller's greenlet and workerize are useful helpers: https://observablehq.observablehq.cloud/pangea/party/greenlet

Fil avatar Jul 16 '24 07:07 Fil