shareable property

Object get shareable

The backing store, to hand to a worker and rebuild there with attach.

SHARED, never transferred: a SharedArrayBuffer in a transfer list is a DataCloneError, and sharing is the whole point — both threads must end up pointing at this same memory.

Implementation

Object get shareable => sync.shareableBuffer(_buffer);