x/oak/utils/create_promise_with_resolvers.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
function createPromiseWithResolvers
import { createPromiseWithResolvers } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.3/utils/create_promise_with_resolvers.ts?s=createPromiseWithResolvers";

Offloads to the native Promise.withResolvers when available.

Currently Node.js does not support it, while Deno does.

Returns

PromiseWithResolvers<T>[src]