Re: [screen-wake-lock] "Release a wake lock": should we queue a task to fire the "release" event? (#293)

I'm afraid you will have to think about all those things, but I'm happy to help.

> More generally speaking, if there are two subsequent parallel steps, one to queue a task to fire an event and another to resolve a promise, will the promise always be resolved after the event is fired?

What you need to do for cases like this is queue a task to fire the event *and* resolve the promise (a task can itself be a series of steps). I'm not sure if we decided on order there. I guess I'd resolve first...

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 2 February 2021 17:09:25 UTC