3 ms·
For that matter, anyone who'd like to have "fun" with concurrency and lock management in browser-side JS is free to play around with recurring asynchronous data
by rmrfrmrf 9y ago
For that matter, anyone who'd like to have "fun" with concurrency and lock management in browser-side JS is free to play around with recurring asynchronous data fetching cached in localStorage when multiple browser tabs are open.
Spoiler: locks are the wrong approach and you should be relying on events/callbacks instead. Oddly enough, that's similar to my gut feeling about Threads in JS.
- einrealist 9y agoA browser can easily optimise HTTP or localStorage calls internally, without introducing Threads to the "userland" code.
- rmrfrmrf 9y agoI'm talking about a userland implementation.