Function lrs::thread::exit

Terminates the current thread.

Syntax

unsafe fn exit(code: i32) -> !

Arguments

NameDescription
code

The exit code of the thread.

Remarks

This is unsafe because !Leak data will not be destroyed.