Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/async/state.ts>promiseState

🦕 Asynchronous primitive modules for Deno.
Latest
function promiseState
import { promiseState } from "https://deno.land/x/async@v2.1.0/state.ts";

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

Parameters

p: Promise<unknown>