diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2021-07-30 01:15:11 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-29 21:45:11 +0200 |
commit | 2b13bb694532904704c16bec4e8a47c386e681e2 (patch) | |
tree | 0021131ce86873a5aa965d79b99185b3ca5c5aff /cli/standalone.rs | |
parent | eece46f0d85faa90c97841a4f409be39272e809b (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/standalone.rs')
-rw-r--r-- | cli/standalone.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/standalone.rs b/cli/standalone.rs index c8918563f..65ca58ec3 100644 --- a/cli/standalone.rs +++ b/cli/standalone.rs @@ -249,6 +249,7 @@ pub async fn run( blob_store, broadcast_channel, shared_array_buffer_store: None, + cpu_count: num_cpus::get(), }; let mut worker = MainWorker::from_options(main_module.clone(), permissions, &options); |