Components Interactions Examples Tutorials API FAQ
Options
Menu

Class CallbackSet

A set of callbacks which can be all invoked at once. Each callback exists at most once in the set (based on reference equality). All callbacks should have the same signature.

Type parameters

  • CB: Function

Hierarchy

  • Set<CB>
    • CallbackSet

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

size

size: number

Methods

add

  • add(value: CB)

callCallbacks

  • callCallbacks(...args: any[])

delete

  • delete(value: CB): boolean

forEach

  • forEach(callback: function, thisArg?: any): void
  • Parameters

    • callback: function
        • (value: CB, value2: CB, set: Set<CB>): void
        • Parameters

          • value: CB
          • value2: CB
          • set: Set<CB>

          Returns void

    • Optional thisArg: any

    Returns void

has

  • has(value: CB): boolean

Generated using TypeDoc