Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.38.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