TShell.Timeout#
Tempo máximo da execução, em milissegundos.
Declaração#
property Timeout: Integer read write;Exemplo#
program Example(Config: TConfig);
uses Odisseia.Process;
var Shell: TShell;
begin
Shell := TShell.Create;
Shell.Executable := Config.GetString('SHELL_EXECUTABLE');
Shell.Command := 'echo hello';
Shell.Timeout := 5000;
WriteLn(IntToStr(Shell.Timeout))
end.Zero usa o limite efetivo do host. Valores negativos ou superiores ao limite permitido são rejeitados.