summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2021-07-30 01:15:11 +0530
committerGitHub <noreply@github.com>2021-07-29 21:45:11 +0200
commit2b13bb694532904704c16bec4e8a47c386e681e2 (patch)
tree0021131ce86873a5aa965d79b99185b3ca5c5aff /cli/dts/lib.deno.unstable.d.ts
parenteece46f0d85faa90c97841a4f409be39272e809b (diff)
feat(runtime): implement navigator.hardwareConcurrency (#11448)
This commit implements "navigator.hardwareConcurrency" API, which supersedes "Deno.systemCpuInfo()" API (which was removed in this commit).
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts23
1 files changed, 0 insertions, 23 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 199f05631..442da1e53 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -107,29 +107,6 @@ declare namespace Deno {
swapFree: number;
}
- /** **Unstable** new API. yet to be vetted.
- *
- * Returns the total number of logical cpus in the system along with
- * the speed measured in MHz. If either the syscall to get the core
- * count or speed of the cpu is unsuccessful the value of the it
- * is undefined.
- *
- * ```ts
- * console.log(Deno.systemCpuInfo());
- * ```
- *
- * Requires `allow-env` permission.
- *
- */
- export function systemCpuInfo(): SystemCpuInfo;
-
- export interface SystemCpuInfo {
- /** Total number of logical cpus in the system */
- cores: number | undefined;
- /** The speed of the cpu measured in MHz */
- speed: number | undefined;
- }
-
/** **UNSTABLE**: new API, yet to be vetted.
*
* Open and initialize a plugin.