Process

A handle to a process running inside a Pod

A Process is a handle to a process running inside a Pod. It is returned by run.

Process is a thenable object: awaiting it resolves to the exit code of the process once it exits. If the process cannot be started or is killed by a signal, awaiting it throws an error instead.

class Process {}

Creating a Process

const exitCode = await pod.run("node", ["script.js"], { terminal });