swarpc - v0.19.0
    Preparing search index...

    Type Alias Broadcaster<P>

    Broadcaster: {
        orThrow: (
            input: Schema.InferInput<P["input"]>,
            onProgress?: (
                progresses: Map<string, Schema.InferOutput<P["progress"]>>,
            ) => void,
            nodes?: number | (string | undefined)[],
        ) => Promise<Schema.InferOutput<P["success"]>[]>;
    } & (
        input: Schema.InferInput<P["input"]>,
        onProgress?: (
            progresses: Map<string, Schema.InferOutput<P["progress"]>>,
        ) => void,
        nodes?: number | (string | undefined)[],
    ) => Promise<
        (
            PromiseSettledResult<Schema.InferOutput<P["success"]>> & {
                node: string;
            }
        )[] & (
            | BroadcasterResultExtrasMixed<P>
            | BroadcasterResultExtrasSuccess<P>
            | BroadcasterResultExtrasFailure
        ),
    >

    A procedure that broadcasts its request to multiple nodes. The return value is an array of results, along with extra properties: see BroadcasterResultExtrasMixed, BroadcasterResultExtrasSuccess and BroadcasterResultExtrasFailure

    Type Parameters

    Type Declaration

    • orThrow: (
          input: Schema.InferInput<P["input"]>,
          onProgress?: (
              progresses: Map<string, Schema.InferOutput<P["progress"]>>,
          ) => void,
          nodes?: number | (string | undefined)[],
      ) => Promise<Schema.InferOutput<P["success"]>[]>

      Returns an array of result values for each node.

      with every failing node's error

      • (
            input: Schema.InferInput<P["input"]>,
            onProgress?: (
                progresses: Map<string, Schema.InferOutput<P["progress"]>>,
            ) => void,
            nodes?: number | (string | undefined)[],
        ): Promise<
            (
                PromiseSettledResult<Schema.InferOutput<P["success"]>> & {
                    node: string;
                }
            )[] & (
                | BroadcasterResultExtrasMixed<P>
                | BroadcasterResultExtrasSuccess<P>
                | BroadcasterResultExtrasFailure
            ),
        >
      • Parameters

        • input: Schema.InferInput<P["input"]>
        • OptionalonProgress: (progresses: Map<string, Schema.InferOutput<P["progress"]>>) => void
        • Optionalnodes: number | (string | undefined)[]

        Returns Promise<
            (
                PromiseSettledResult<Schema.InferOutput<P["success"]>> & {
                    node: string;
                }
            )[] & (
                | BroadcasterResultExtrasMixed<P>
                | BroadcasterResultExtrasSuccess<P>
                | BroadcasterResultExtrasFailure
            ),
        >