Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Mutex

Index

Constructors

Methods

Constructors

constructor

Methods

dispatch

  • dispatch<T>(fn: (() => T) | (() => PromiseLike<T>)): Promise<T>
  • Type parameters

    • T

    Parameters

    • fn: (() => T) | (() => PromiseLike<T>)

    Returns Promise<T>

lock

  • lock(): PromiseLike<() => void>
  • Returns PromiseLike<() => void>