6 ms·
On a somewhat interesting note: transferable objects work similarly in web workers. There have been complaints, of course, that this makes it impossible to take
by rationalthug 11y ago
On a somewhat interesting note: transferable objects work similarly in web workers. There have been complaints, of course, that this makes it impossible to take advantage of shared memory in cases where it provides clear performance benefits.
- shortstuffsushi 11y agoWouldn't the concept of borrowing avoid that issue in Rust though?
- pcwalton 11y agoActually, atomics and locks (which are fully supported) are what avoid that issue in Rust. You can't borrow across multiple threads.