Closed
Description
Rust doesn't seem to provide a means of cleanly exiting the process apart from programmatically ending all of one's tasks and then allowing the main task to run to completion. Some folks are turning to std::libc::exit
as an alternative, which @chris-morgan has pointed out might have undesirable consequences.
This feature is common in many other languages:
exit()
in CSystem.exit()
in Javasys.exit()
in Pythonos.Exit()
in Go
It may be worthwhile to document why it is impractical for Rust to provide it as well.
Metadata
Metadata
Assignees
Labels
No labels