import { createPromiseWithResolvers } from "https://deno.land/x/acorn@0.5.0/util.ts";
Offloads to the native Promise.withResolvers
when available.
Currently Node.js does not support it, while Deno and Bun do.
x/acorn/util.ts>createPromiseWithResolvers
import { createPromiseWithResolvers } from "https://deno.land/x/acorn@0.5.0/util.ts";
Offloads to the native Promise.withResolvers
when available.
Currently Node.js does not support it, while Deno and Bun do.