Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJSWorker threads basicsSingle-choice MCQ

You `postMessage` a regular `ArrayBuffer` and include it in the `transferList`. What is the state of that buffer in the sending thread afterward?

const buf = new ArrayBuffer(1024); port.postMessage(buf, [buf]); // buf in transferList