swarpc - v0.19.0
    Preparing search index...

    Type Alias BroadcasterResultExtrasMixed<P>

    Extra properties on the result of a broadcaster call, when some nodes succeeded and some failed

    type BroadcasterResultExtrasMixed<P extends Procedure<Schema, Schema, Schema>> = {
        failures: ArrayOneOrMore<PromiseRejectedResult & { node: string }>;
        failureSummary: string;
        ko: false;
        ok: false;
        status: "mixed";
        successes: ArrayOneOrMore<Schema.InferOutput<P["success"]>>;
        byNode: Map<string, PromiseSettledResult<Schema.InferOutput<P["success"]>>>;
    }

    Type Parameters

    Index

    Properties

    failures: ArrayOneOrMore<PromiseRejectedResult & { node: string }>

    Undefined if no failures

    failureSummary: string

    Formatted error string, undefined if no failures

    ko: false

    True if only failures

    ok: false

    True if no failures

    status: "mixed"

    "mixed" if some failed and some succeeded, "fulfilled" if all succeeded and "rejected" if everything failed

    successes: ArrayOneOrMore<Schema.InferOutput<P["success"]>>

    All values of successful calls

    byNode: Map<string, PromiseSettledResult<Schema.InferOutput<P["success"]>>>

    Map of node ID to its result or failure