Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dax/src/command.ts>CommandBuilder#timeout

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
method CommandBuilder.prototype.timeout
import { CommandBuilder } from "https://deno.land/x/dax@0.31.0/src/command.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