Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denoexec/lib/process_deferred.ts>ProcessDeferred

A higher level wrapper around https://doc.deno.land/builtin/stable#Deno.run
Latest
class ProcessDeferred
implements ProcessOptions, Promise<ProcessResults>
import { ProcessDeferred } from "https://deno.land/x/denoexec@v1.1.5/lib/process_deferred.ts";

This is designed for use with the functional api.

Constructors

new
ProcessDeferred(opts: ProcessOptions)

Properties

captureStdio: boolean | undefined
cmd: string[]
cwd: string | undefined
env: Record<string, string> | undefined
inheritStdio: boolean | undefined
prefix: string | undefined
prefixSeparator: string | undefined
stderr: Deno.Writer | undefined
stdin:
| string
| Uint8Array
| undefined
stdout: Deno.Writer | undefined
throwOnNonZeroExit: boolean | undefined
throwOnStdErr: boolean | undefined
readonly
[Symbol.toStringTag]

Methods

catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<ProcessResults | TResult>
finally(onfinally?: (() => void) | undefined | null): Promise<ProcessResults>
then<TResult1 = ProcessResults, TResult2 = never>(onfulfilled?: ((value: ProcessResults) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>