Options
All
  • Public
  • Public/Protected
  • All
Menu

Module index

Index

Type aliases

Functions

Type aliases

BatchedFunction

BatchedFunction: (args: any[][]) => Promise<Promise<any>[]>

BatchedFunction models an async function that takes as argument an array of function arguments and resolves to an array of Promise

Type declaration

    • (args: any[][]): Promise<Promise<any>[]>
    • Parameters

      • args: any[][]

      Returns Promise<Promise<any>[]>

SingularFunction

SingularFunction: (...args: any[]) => Promise<any>

SingularFunction models any async function

Type declaration

    • (...args: any[]): Promise<any>
    • Parameters

      • Rest ...args: any[]

      Returns Promise<any>

Functions

singular

  • Converts a batched functions to a singular one. If maxBatchSize is undefined, only one batched call at a time is done, otherwise calls with batches of at most maxBatchSize can be run in parallel

    Parameters

    • batched: BatchedFunction

      the batched function

    • __namedParameters: { maxBatchSize: undefined | number } = ...
      • maxBatchSize: undefined | number

        the max batch size of each batched call

    Returns SingularFunction

    the singular function

Generated using TypeDoc