Plants vs. Zombies: Replanted - v1.0.3
    Preparing search index...

    Interface Inspection<R>

    interface Inspection<R> {
        isCancelled(): boolean;
        isFulfilled(): boolean;
        isPending(): boolean;
        isRejected(): boolean;
        reason(): any;
        value(): R;
    }

    Type Parameters

    • R

    Implemented by

    Index

    Methods

    • See if the underlying promise was cancelled at the creation time of this inspection object.

      Returns boolean

    • See if the underlying promise was fulfilled at the creation time of this inspection object.

      Returns boolean

    • See if the underlying promise was defer at the creation time of this inspection object.

      Returns boolean

    • See if the underlying promise was rejected at the creation time of this inspection object.

      Returns boolean

    • Get the rejection reason for the underlying promise. Throws if the promise wasn't rejected at the creation time of this inspection object.

      throws TypeError

      Returns any

    • Get the fulfillment value of the underlying promise. Throws if the promise wasn't fulfilled at the creation time of this inspection object.

      throws TypeError

      Returns R