Skip to main content
Module

x/mongo/mod.ts>Bson.Deferred

MongoDB driver for Deno
Extremely Popular
Go to Latest
interface Bson.Deferred
implements Promise<T>
import { type Bson } from "https://deno.land/x/mongo@v0.31.1/mod.ts";
const { Deferred } = Bson;

Properties

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

Methods

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