Documentation

Std.Async.System

This module contains all system related functions and environment variables manipulation.

A group identifier, represented by a numeric ID in UNIX systems (e.g. 1000).

  • toNat : Nat

    The numeric group ID.

Instances For
    Instances For
      @[implicit_reducible]
      @[implicit_reducible]

      A user identifier, represented by a numeric ID in UNIX systems (e.g. 1001).

      • toNat : Nat

        The numeric user ID.

      Instances For
        Instances For
          @[implicit_reducible]
          @[implicit_reducible]

          Information about the current user.

          Instances For
            Instances For

              Information about a group.

              • groupName : String

                The name of the group.

              • groupId : GroupId

                The ID of the group.

              • members : Array String

                The list of users in the group.

              Instances For

                Represents the breakdown of CPU time usage in milliseconds.

                Instances For
                  Instances For
                    @[implicit_reducible]

                    Information about a single CPU core.

                    • model : String

                      CPU model name.

                    • speed : Nat

                      The approximate clock speed of the CPU core in MHz.

                    • times : CPUTimes

                      The time spent on the CPU.

                    Instances For
                      Instances For
                        @[implicit_reducible]

                        Gets information about the operating system.

                        Instances For
                          @[implicit_reducible]

                          All the environment variables.

                          Instances For
                            @[inline]
                            Instances For

                              Gets information about the operating system.

                              Instances For

                                Gets information about the CPU cores.

                                Instances For
                                  @[inline]

                                  Gets the system uptime in seconds.

                                  Instances For
                                    @[inline]

                                    The current high-resolution timestamp in nanoseconds. It is relative to an arbitrary time in the past.

                                    Instances For
                                      @[inline]

                                      Gets the hostname of the machine.

                                      Instances For
                                        @[inline]

                                        Sets an environment variable to value.

                                        Instances For
                                          @[inline]

                                          Gets an environment variable.

                                          Instances For
                                            @[inline]

                                            Unset an environment variable.

                                            Instances For
                                              @[inline]

                                              Gets all environment variables.

                                              Instances For
                                                @[inline]

                                                Gets the current user's home directory.

                                                Instances For
                                                  @[inline]

                                                  Gets the temporary directory.

                                                  Instances For

                                                    Gets the current user by using passwd.

                                                    On Windows systems, userId, groupId and shell are set to none

                                                    Instances For

                                                      Gets the group by its ID.

                                                      Instances For