Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AsyncUtils

Hierarchy

  • AsyncUtils

Index

Methods

Static detachBatchListener

  • detachBatchListener(listenerId: string): void

Static processBatch

  • processBatch<T>(items: T[], processItem: function, completed: function): string
  • Type parameters

    • T

    Parameters

    • items: T[]
    • processItem: function
        • (item: T, success: function, error: function): void
        • Parameters

          • item: T
          • success: function
              • (): void
              • Returns void

          • error: function
              • (): void
              • Returns void

          Returns void

    • completed: function
        • (hasErrors: boolean): void
        • Parameters

          • hasErrors: boolean

          Returns void

    Returns string