DNAD
Denoβ€’2y agoβ€’
9 replies
DNA

Kill Deno.Command

Is it possible to kill/end a Deno.command-instance?
Example code:
(async () => {
    let ffmpegProcess: Promise<Deno.CommandOutput> | undefined;
    ffmpegProcess = new Deno.Command("ffmpeg", {args: ["-i", filename, `${folder}/frame%08d.png`, "-threads", "1"]}).output();
    await ffmpegProcess;
    done = true;
})();

// Later some time
ffmpegProcess.close(); // Something like that?
Was this page helpful?