Theia API Documentation v1.65.0
    Preparing search index...

    Simple implementation of the deferred pattern. An object that exposes a promise and functions to resolve and reject it.

    Type Parameters

    • T = void
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    promise: Promise<T> = ...
    reject: (err?: unknown) => void
    resolve: (value: T | PromiseLike<T>) => void
    state: "resolved" | "rejected" | "unresolved" = 'unresolved'

    Methods