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

x/async/state.ts>promiseState

🦕 Asynchronous primitive modules loosely port from Python's asyncio for Deno.
Go to Latest
function promiseState
import { promiseState } from "https://deno.land/x/async@v1.1.5/state.ts";

Return state (fulfilled/rejected/pending) of a promise

Parameters

p: Promise<unknown>