Comment by bastawhiz
19 hours ago
ArrayBuffer is copied by default unless you pass it as a special transferable object. But only the current owner of the buffer can use it.
If you need to read and write from both threads at once, you need to look at SharedArrayBuffer.
No comments yet
Contribute on Hacker News ↗