Skip to content

os.util

fn exec_with_timeout #

fn exec_with_timeout(args []string, timeout i64) ?os.Result

exec_with_timeout runs literal arguments, returning none when the timeout elapses. The timeout is in milliseconds and does not terminate the child process.

fn execute_with_timeout #

@[deprecated: 'use os.util.exec_with_timeout with an argument array; command strings can allow shell injection']
fn execute_with_timeout(cmd string, timeout i64) ?os.Result

TODO select doesn't work with time.Duration for some reason