Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
function createDeferredPromiseWithTimer
import { createDeferredPromiseWithTimer } from "https://deno.land/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/util/DeferredPromise.js";

Creates an returns a promise along with the resolve/reject functions.

If the promise has not been resolved/rejected withing the timeout period, the promise gets rejected with a timeout error.

Parameters

timeoutMessage: string
optional
timeout: number