# Executor.timeout

Set a timeout for command execution.

```rhai
executor.timeout(seconds: u64) -> Executor
```

If the command takes longer than the specified number of seconds, it will be terminated.

## Parameters

- `seconds` - Maximum execution time in seconds

## Example

```rhai
let result = execute("sleep 100")
    .timeout(5)
    .ignore_error()
    .run()?;
if !result.success {
    print("Command timed out");
}
```
