You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should there be a more specific error than an AbortError DOMException as the promise resolution when the lock is stolen? i.e.
try{constresult=awaitnavigator.locks.request('resource',asynclock=>{// ... hold for an arbitrary period, e.g. await new Promise(r => {})});}catch(ex){// anything more specific than ex.name === 'AbortError' here?}// elsewhere and elsewhen...navigator.locks.request('resource',{steal: true},lock=>{});
ex.message will have more details for logging purposes, at least.
The text was updated successfully, but these errors were encountered:
Should there be a more specific error than an AbortError DOMException as the promise resolution when the lock is stolen? i.e.
ex.message
will have more details for logging purposes, at least.The text was updated successfully, but these errors were encountered: