blob: f6328da30802775c715f3aff586e0e0a7d5478e9 [file] [log] [blame]
navigator.locks.request('worker-lock-123', function() {
postMessage('lock acquired from worker');
return new Promise(resolve => {
// Don't release the lock.
});
});