Re: [wake-lock] WakeLock.request() returns a promise that never resolves (#226)

Proposed new WebIDL from TPAC 2019 F2F:

```js
partial interface Navigator {
  readonly attribute WakeLock wakeLock;
};

interface WakeLock {
  Promise<unsigned long long> request(WakeLockType type);
  Promise<void> release(unsigned long long id);
};

dictionary WakeLockEventInit {
  required unsigned long long lock;
};

interface WakeLockEvent : Event {
  constructor(DOMString type, WakeLockEventInit init);
  readonly attribute unsigned long long lock;
};
```

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/226#issuecomment-533032056 using your GitHub account

Received on Thursday, 19 September 2019 08:45:14 UTC