RiotSourceReturnts the current random state from a scheduler.
Suspends execution of the current process and returns control to the scheduler
sleep t Suspends execution of the current process for at least `t` seconds. `t` is a float so it supports subsecond values: `0.001` is 1 millisecond.
Sends an exit signal to the process pid, to exit with reason exit_reason
Spawns a new process and links it to the current process before returning.
Makes pid1 a monitor of pid2. When pid2 terminates, pid1 will receive a message.
receive () will return the first message in the process mailbox.
This function will suspend a process that has an empty mailbox, and the process will remain asleep until a message is delivered to it.
### Selective Receive
If a `ref` was passed, then `receive ref ()` will skip all messages created before the creation of this `Ref.t` value, and will only return newer messages.
This is useful to skip the queue, but not remove any of the messages before it. Those messages will be delivered in-order in future calls to `receive ()`.
Gracefully shuts down the runtime. Any non-yielding process will block this.
Start the Riot runtime using function main to boot the system