Odisseia 1.21.56
Português do BrasilManual oficial · 1.21.56
Sobre a tradução em inglês

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.

Voltar para TShell