Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by bastawhiz

18 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.

0 comments

bastawhiz

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities