2 ms·
It could just be an object that you create, and then .lock() on though. Like almost every other language...
by wheybags 5y ago
It could just be an object that you create, and then .lock() on though. Like almost every other language...
- mmastrac 5y agoFair, but how does one claim the same object on two pages in a race-free manner? You could allow them to be smuggled through postMessage, but then two pages would have to coordinate creation/reception of the lock. I'd love to hear better solutions as I might be too tired pre-coffee to brainstorm something more elegant. I find it interesting that Windows effectively uses global string-named mutexes and overall still has a few very rare conflicts that usually make the news [1]. [1] https://geek-week.imtqy.com/articles/en488834/index.html https://geek-week.imtqy.com/articles/en488834/index.html