Lily Application API
Functions for controlling the lifetime of the application.
Only available from Simulation ticks.
Functions
can_exit
fn can_exit()
Returns whether the current platform supports terminating
the application through [exit].
exit
fn exit(return_value: Int)
Requests application termination.
The application will exit at the end of the current simulation tick.
The provided return_value becomes the process exit code on platforms
that support exit codes.