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

x/proc/legacy/mod.ts>MultiCloseProcess

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
class MultiCloseProcess
implements [Deno.Closer]
Re-export
import { MultiCloseProcess } from "https://deno.land/x/proc@0.20.22/legacy/mod.ts";

Wrapper for a Deno process that ensures it is only closed once, even though we may try to close it multiple times.

Constructors

new
MultiCloseProcess(
process: Deno.Process,
options: RunOptions,
group: GroupImpl,
)

Properties

private
closed: boolean
readonly
pid: number

Methods

close(): void
status(): Promise<Deno.ProcessStatus>