W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2014

Re: [whatwg] Proposal: Wake Lock API

From: Marcos Caceres <w3c@marcosc.com>
Date: Tue, 19 Aug 2014 16:44:03 -0400
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Message-ID: <etPan.53f3b713.238e1f29.1070@Marcoss-MacBook-Pro.local>
Cc: WHAT Working Group <whatwg@lists.whatwg.org>, Mounir Lamouri <mounir@lamouri.fr>, Jonas Sicking <jonas@sicking.cc>

On August 19, 2014 at 4:39:03 PM, Tab Atkins Jr. (jackalmage@gmail.com) wrote:
> > Why is isHeld still used here? You don't need it to avoid squashing  
> someone else's lock with this design, and several people have  
> pointed out that exposing it is a footgun, as people might check it and  
> decide they don't need to request their own lock (only to be screwed when  
> the other lock releases earlier or later than they expected).

It's the only authoritative source of truth. But ok, fair point about the footgun.

Consider the static dropped. 

Marcos Caceres
Received on Tuesday, 19 August 2014 20:44:30 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:22 UTC