Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Lockable

Implemented by

Index

Methods

Methods

isLocked

  • isLocked(): boolean
  • Determines whether this Lockable is locked. If the Lockable is in the unlocked state then it is mutable. If the Lockable is in the locked state then it is immutable.

    Returns boolean

lock

  • lock(): number
  • Locks this Lockable (preventing any further mutation), and returns a token that may be used to unlock it.

    Returns number

unlock

  • unlock(token: number): void
  • Unlocks this Lockable (allowing mutation), using a token that was obtained from a preceding lock method call.

    Parameters

    • token: number

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Property
  • Method
  • Protected property
  • Protected method
  • Static property
  • Static method

Generated using TypeDoc