Skip to main content

FORMAT_TIMEOUT

Constant FORMAT_TIMEOUT 

Source
pub const FORMAT_TIMEOUT: Duration;
Expand description

Wall-clock ceiling for one formatter run.

A formatter is a batch tool on a file-sized input; anything past this is hung, not slow. The number matters because IN.9 runs this on the save path, where the rule is that a formatter must never cost the user their write.