@vgerbot/async
    Preparing search index...

    Class Defer<T>

    A modern Deferred Promise implementation that exposes resolve/reject methods. Provides external control over Promise resolution while maintaining Promise semantics.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    promise: Promise<T>
    reject: (reason?: unknown) => void
    resolve: (value: T | PromiseLike<T>) => void

    Accessors

    Methods

    • Attaches a callback that is invoked when the Promise is settled

      Parameters

      • Optionalonfinally: (() => void) | null

      Returns Defer<T>

      A new Defer instance