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

x/evt/tools/Deferred.ts>Deferred

💧EventEmitter's typesafe replacement
Go to Latest
namespace Deferred
import { Deferred } from "https://deno.land/x/evt@v2.4.7/tools/Deferred.ts";
class Deferred
import { Deferred } from "https://deno.land/x/evt@v2.4.7/tools/Deferred.ts";

Constructors

new
Deferred()

Properties

readonly
isPending: boolean
readonly
pr: Promise<T>
readonly
reject: (error: any) => void
readonly
resolve: (value: T) => void

NOTE: Does not need to be called bound to instance