set_hook

Function set_hook 

Source
pub fn set_hook(hook: fn()) -> bool
Expand description

Install the process-wide progress hook. First installation wins; a later call is ignored and returns false. The hook must be cheap and must not re-enter geometry code.