Options
All
  • Public
  • Public/Protected
  • All
Menu

Module concurrency/limit

Index

References

Functions Async

References

Renames and re-exports __type

Async Functions

  • limit<T>(runner: T, concurrencyNumber: number): T
  • limit concurrent for parallel operations

    since

    5.15.0

    Type parameters

    Parameters

    • runner: T

      async operation function

    • concurrencyNumber: number

      max concurrency number

    Returns T

    the concurrency limited function wrapper

  • synchronized<T>(func: T): T
  • let async function only invoke at once in same time

    since

    5.20.0

    Type parameters

    Parameters

    • func: T

      the function to be processed

    Returns T

    the wrapped function instance