pub fn end_session()
Expand description

Prematurely end a session before it is done automatically by shutdown.

Examples

// end session prematurely
end_session();

// run some code that isn't part of the session
println!("If this fails, it will not be recorded as part of the session!");