Skip to main content
Module

x/oak/utils/create_promise_with_resolvers.ts>createPromiseWithResolvers

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Extremely Popular
Go to Latest
function createPromiseWithResolvers
import { createPromiseWithResolvers } from "https://deno.land/x/oak@v16.0.0/utils/create_promise_with_resolvers.ts";

Offloads to the native Promise.withResolvers when available.

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

Returns

PromiseWithResolvers<T>