Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

onceOfSimultaneously

  • onceOfSimultaneously<R, Fn>(func: Fn): Fn

将函数包装为同一时间只能调用一次,其他的调用返回旧值 主要适用场景是同一时间只允许存在一个 UI 调用(弹出层) 示意图: a => b => c => d => e => a ==|===> c ==|===> e => |b |d (die)

Type parameters

Parameters

  • func: Fn

    需要包装的函数

Returns Fn

包装后的函数

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.