Skip to main content

is_r_main_thread

Function is_r_main_thread 

Source
pub fn is_r_main_thread() -> bool
Expand description

Check if the current thread is R’s main thread.

Returns true if called from the main R thread, false otherwise. Before miniextendr_runtime_init() is called, always returns false.