Options
All
  • Public
  • Public/Protected
  • All
Menu

A wrapper for the experimental compute pressure api which allows a callback to be called whenever certain thresholds are met.

Hierarchy

  • ComputePressureObserverWrapper

Index

Constructors

Accessors

Methods

Constructors

Accessors

  • get IsAvailable(): any
  • Returns true if ComputePressureObserver is available for use, false otherwise.

    Returns any

Methods

  • observe(source: "cpu"): void
  • Method that must be called to begin observing changes, and triggering callbacks.

    Parameters

    • source: "cpu"

      defines the source to observe

    Returns void

  • unobserve(source: "cpu"): void
  • Method that must be called to stop observing changes and triggering callbacks (cleanup function).

    Parameters

    • source: "cpu"

      defines the source to unobserve

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme