Function first

Source
pub fn first() -> bool
Expand description

Whether this is the first thread (not the first thread to be executing). This function is guaranteed to only return true in a single thread that is invoking it. This is useful for only doing something once.