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

> 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