New issue
Advanced search Search tips

Issue 808732 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature

Blocked on:
issue 750599

Blocking:
issue 161072



Sign in to add a comment

Web Locks API: implement 'signal' option

Project Member Reported by jsb...@chromium.org, Feb 3 2018

Issue description

https://github.com/inexorabletash/web-locks/

https://github.com/inexorabletash/web-locks/blob/master/proto-spec.md

const controller = new AbortController();
setTimeout(() => controller.abort(), 200); // wait at most 200ms

try {
  await navigator.locks.acquire('resource', {signal:  controller.signal}, async lock => { ... });
} catch (ex) {
  // |ex| will be a DOMException with error name "AbortError" if timer fired.
}
 
Blockedon: 750599
Blocking: 161072
Labels: Type-Feature
Project Member

Comment 3 by bugdroid1@chromium.org, Feb 7 2018

Status: Fixed (was: Started)

Sign in to add a comment