Re: [whatwg] Proposal: Wake Lock API

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