Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Process

Hierarchy

Implements

Index

Constructors

constructor

  • new Process(process: ChildProcess): Process

Properties

aapi

aapi: AbortApi

abort

abortWith

abortWith: (response?: Response<ProcessResponseResolve>) => this

Type declaration

process

process: ChildProcess

promise

Optional timeout

Accessors

Static [Symbol.species]

  • get [Symbol.species](): PromiseConstructor

Methods

catch

  • Attaches a callback for only the rejection of the Promise.

    Type parameters

    • TResult

    Parameters

    • Optional onrejected: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null

      The callback to execute when the Promise is rejected.

    Returns Promise<ProcessResponseResolve | TResult>

    A Promise for the completion of the callback.

then

  • then<TResult1, TResult2>(onfulfilled?: ((value: ProcessResponseResolve) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>
  • Attaches callbacks for the resolution and/or rejection of the Promise.

    Type parameters

    • TResult1

    • TResult2

    Parameters

    • Optional onfulfilled: ((value: ProcessResponseResolve) => TResult1 | PromiseLike<TResult1>) | undefined | null

      The callback to execute when the Promise is resolved.

    • Optional onrejected: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null

      The callback to execute when the Promise is rejected.

    Returns Promise<TResult1 | TResult2>

    A Promise for the completion of which ever callback is executed.

withAutoAbort

withTimeout

Static Private _ctor

  • _ctor(process: ChildProcess): Process

Static fromAsync

Static fromPromise

  • fromPromise<T>(promise: T | PromiseLike<T>): Abortable<T>

Static reject

Static resolve

Generated using TypeDoc