-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
suggestion: Deno.permissions.querySync
#15576
Comments
@bartlomieju, do you have any thoughts? |
@bartlomieju, just following up. Would love to hear your thoughts. |
I remember reading somewhere that this was planned and then scrapped by the core team but I can't seem to find that discussion right now. @bartlomieju did that happen or am I misremembering it? |
Solving this would help to finish denoland/std#2785, context here: denoland/std#2594 (comment)
Originally posted by @bartlomieju in denoland/std#1495 (comment) Could you please elaborate? |
@bartlomieju, are you able to elaborate? I might just give this a crack anyway. |
We have recently discussed it and @kt3k suggested that it might be needed in |
…0.0+) - `Deno.permissions.querySync()` added in Deno v1.30.0 (on 2023-01-25) - see [suggest: Deno.permissions.querySync](denoland/deno#15576) - see [feat: Add sync APIs for "Deno.permissions"](denoland/deno#17019) - see [v1.30.0](https://github.com/denoland/deno/releases/tag/v1.30.0) released on 2023-01-25
- `Deno.permissions.querySync()` added in Deno v1.30.0 (on 2023-01-25) - see [suggest: Deno.permissions.querySync](denoland/deno#15576) - see [feat: Add sync APIs for "Deno.permissions"](denoland/deno#17019) - see [v1.30.0](https://github.com/denoland/deno/releases/tag/v1.30.0) released on 2023-01-25
- `Deno.permissions.querySync()` added in Deno v1.30.0 (on 2023-01-25) - see [suggest: Deno.permissions.querySync](denoland/deno#15576) - see [feat: Add sync APIs for "Deno.permissions"](denoland/deno#17019) - see [v1.30.0](https://github.com/denoland/deno/releases/tag/v1.30.0) released on 2023-01-25
- `Deno.permissions.querySync()` added in Deno v1.30.0 (on 2023-01-25) - see [suggest: Deno.permissions.querySync](denoland/deno#15576) - see [feat: Add sync APIs for "Deno.permissions"](denoland/deno#17019) - see [v1.30.0](https://github.com/denoland/deno/releases/tag/v1.30.0) released on 2023-01-25
- `Deno.permissions.querySync()` added in Deno v1.30.0 (on 2023-01-25) - see [suggest: Deno.permissions.querySync](denoland/deno#15576) - see [feat: Add sync APIs for "Deno.permissions"](denoland/deno#17019) - see [v1.30.0](https://github.com/denoland/deno/releases/tag/v1.30.0) released on 2023-01-25
- `Deno.permissions.querySync()` added in Deno v1.30.0 (on 2023-01-25) - see [suggest: Deno.permissions.querySync](denoland/deno#15576) - see [feat: Add sync APIs for "Deno.permissions"](denoland/deno#17019) - see [v1.30.0](https://github.com/denoland/deno/releases/tag/v1.30.0) released on 2023-01-25
Deno.permissions.query
is currently async. A sync version would be useful in contexts where top-level await would otherwise break node. Refs:--allow-net
permission is missing std#1396 (possibly)In denoland/std#1495 in particular, @bartlomieju mentions that a sync version of this API might not be a good idea. Is this still the case? If so, is there a decent workaround for the above-mentioned refs?
The text was updated successfully, but these errors were encountered: