W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > June 2022

Re: [mediacapture-region] What makes CropTarget special to require an asynchronous creation? (#17)

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Tue, 28 Jun 2022 17:05:35 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-1168996295-1656435931-sysbot+gh@w3.org>
> I was suggesting that such a solution also requires an async API, to avoid the lock blocking the main thread.

I don't think it does. Any API can trigger [in parallel](https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel) work. Returning a promise is only valuable if the caller needs the result.

If we "avoid blocking" then it says to use sync (if the "[API ... will not be blocked by ... a lock.](https://www.w3.org/TR/design-principles/#synchronous)")

GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-region/issues/17#issuecomment-1168996295 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 28 June 2022 17:05:36 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:57 UTC