Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adds examples to Kernel refs #2800
  • Loading branch information
JJ committed Jun 22, 2019
1 parent 5e145dd commit f88048a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/Type/Kernel.pod6
Expand Up @@ -39,6 +39,8 @@ processor. Usually B<32> or B<64>.
Instance / Class method returning the number of CPU cores that are available.
say $*KERNEL.cpu-cores; # OUTPUT: «8␤»
=head2 method cpu-usage
method cpu-usage(--> Int)
Expand Down Expand Up @@ -78,6 +80,8 @@ Defined as
Instance method returning the hardware information of the Kernel object. Dies
if the hardware information could not be established.
say $*KERNEL.hardware; # OUTPUT: «x86_64␤»
=head2 method hostname
method hostname
Expand All @@ -102,6 +106,8 @@ Defined as:
Instance method returning the C<Signal> numeric code for a given name for the
Kernel object.
say $*KERNEL.signal("INT"); # OUTPUT: «2␤»
=head2 method signals
Instance method returning a list of C<Signal>s that are supported by the
Expand Down

0 comments on commit f88048a

Please sign in to comment.