Hold a screen wake lock until the returned function is called. Ref-counted:
several holders share one lock, and it is given back when the last one
lets go. Best-effort — a no-op where the API is absent or the browser
refuses.
Returns ()=>void
Remarks
The browser drops the lock whenever the page is hidden. It is asked
for again each time the page becomes visible, for as long as someone holds.
Hold a screen wake lock until the returned function is called. Ref-counted: several holders share one lock, and it is given back when the last one lets go. Best-effort — a no-op where the API is absent or the browser refuses.