Sys/Process
Edit on GitHubThis module provides utilities to access functionality and information about the Grain program’s process. This includes things like accessing environment variables and sending signals.
Types
Process.Signal
Signals that can be sent to the host system.
Values
Process.argv
Access command line arguments.
Returns the positional string arguments to the process.
Process.env
Access environment variables.
Returns the environment variables supplied to the process.
Process.exit
Terminate the process normally.
Parameters:
- code: The value to exit with. An exit code of 0 is considered normal, with other values having meaning depending on the platform
Process.sigRaise
Send a signal to the process of the calling thread.
Parameters:
- signal: The signal to send
Process.schedYield
Yield execution to the calling thread.