Hardware Concurrency

The hardware concurrency is a navigator property that returns the number of logical processors available to run threads on the user's computer.

Usage

You can use the useHardwareConcurrency function to gain access to the battery information:

import { useHardwareConcurrency } from 'vue-adaptive-utils';

export default {
  setup() {
    const info = useHardwareConcurrency();
  }
};

The useHardwareConcurrency returns the following properties and methods:

TIP

The Ref Type column represents the underlying exposed type of the refs. All the exposed Refs are read-only.

Prop Ref Type Fallback Value Description
concurrency number undefined The number of logical processors.
isSupported boolean false If the API is supported on this device.