pub fn defer_run_end_log(log: impl FnOnce() + Send + 'static)Expand description
Keeps log to run once at the end of this process’s run
(emit_run_end_log): after the scheduler shuts down on the ordinary
path, and just before any of the scheduler’s stopping refusals exits the
process, so the line is logged on every exit path, at the same point of
each path in every run. A later call replaces an earlier one.