Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "takeLeading"

Index

Functions

Functions

takeLeading

  • A typescript decorator make all concurrent calls on target intance method return the value of the most leading call, all results of afterwards calls are abandoned.

    Parameters

    • Default value acAction: AbandonedCallAction = AbandonedCallAction.None

      For those abandoned calls, how to handle their returned promise, see AbandonedCallAction

    • Optional acActionParam: any

      only required when acAction is AlwaysResolve or AlwaysReject, its the fulfilled result for corresponding promise

    Returns (Anonymous function)

Generated using TypeDoc