Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow unlock() to return a promise #231

Open
wants to merge 7 commits into
base: gh-pages
Choose a base branch
from
Open

Conversation

marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented Oct 27, 2022

Closes #104

The following tasks have been completed:

  • Modified Web platform tests (link to pull request)

Implementation commitment:


Preview | Diff

@annevk
Copy link
Member

annevk commented Oct 27, 2022

Doesn't this have the problem that the promise is resolved before the lock might have been applied? (As that happens in parallel.)

@marcoscaceres
Copy link
Member Author

It shouldn't (though maybe I didn't word it right?). That definitely should never happen: in parallel, (un)locking happens, maybe the event fires if the orientation changed, then the promise is resolved.

@annevk
Copy link
Member

annevk commented Oct 27, 2022

I think I understand, I got confused due to it sometimes early returning a successful promise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Promise for unlock()?
2 participants