Add at_exit
runtime function
#4450
Labels
A-runtime
Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Milestone
Part of removing
comm
: #3915.Both global data and weak tasks need to execute some code immediately before runtime shutdown, and there will probably be others in the future. To facilitate this I intend to add a privileged function,
fn at_exit(~fn())
.The text was updated successfully, but these errors were encountered: