Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak/utils/create_promise_with_resolvers.ts>createPromiseWithResolvers

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
function createPromiseWithResolvers
import { createPromiseWithResolvers } from "https://deno.land/x/oak@v17.1.3/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>