Options
All
  • Public
  • Public/Protected
  • All
Menu

A class which allows nested suspend/resume operations on an ISuspendable target

Hierarchy

  • UpdateSuspender

Implements

Index

Properties

Protected locks

locks: Set<() => boolean> = new Set<() => boolean>()

onResumed

onResumed: EventHandler<void> = new EventHandler<void>()

Protected suspendCounter

suspendCounter: number = 0

Accessors

isSuspended

  • get isSuspended(): boolean
  • Gets whether the current instance is suspended

    Returns boolean

Methods

lock

  • lock(): token
  • Call this to force suspend drawing. Return unlock token. All of the unlock tokens are required to be called to resume drawing.

    Returns token

resume

  • resume(force?: boolean): void
  • Call this to resume drawing

    Parameters

    • Default value force: boolean = false

    Returns void

suspend

  • suspend(): void
  • Call this to suspend drawing

    Returns void

Generated using TypeDoc