pub fn current_thread(with_stack: bool) -> Thread
Captures information about the current thread.
If with_stack is set to true the current stacktrace is attached.
with_stack
true