logoalt Hacker News

bastawhiztoday at 1:39 PM0 repliesview on HN

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.