Skip to content

Unclear return type specification of cpus() in OS.md #78

@pklaschka

Description

@pklaschka

## cpus()
Gets the platform cpu information we are running on (eg. "{'Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz', 2900}")
**Returns**: `array` - the array of objects containing information about each logical CPU core
Currently only model and speed properties are supported. times property is not supported.
Access to CPU information, such as model string and frequency, is limited on UWP.
"ARM based architecture" or "X86 based architecture" is returned as a 'model' value on UWP.
0 is returned as a 'speed' value on UWP.

It isn't clear what kind of information is in the array. Even if we don't have a perfect type definition, specifiying that this is an Array<object> (or maybe Array<any>) already increases the understanding that one can get just from reading/scanning this).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions