Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dax/mod.ts>CommandBuilder#timeout

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
method CommandBuilder.prototype.timeout
Re-export
import { CommandBuilder } from "https://deno.land/x/dax@0.31.1/mod.ts";

Specifies a timeout for the command. The command will exit with exit code 124 (timeout) if it times out.

Note that when using .noThrow() this won't cause an error to be thrown when timing out.

Parameters

delay: Delay | undefined