Mref
Bun

method

Subprocess.ref

ref(): void;

This method will tell Bun to wait for this process to exit after you already called unref().

Before shutting down, Bun will wait for all subprocesses to exit by default