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

x/hex/src/data/deps.ts>mongo.Bson.Deferred

An ecosystem delivering practices, philosophy and portability.
Go to Latest
interface mongo.Bson.Deferred
implements Promise<T>
import { type mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { Deferred } = mongo.Bson;

Properties

readonly
state: "pending" | "fulfilled" | "rejected"

Methods

resolve(value?: T | PromiseLike<T>): void
reject(reason?: any): void