Functions

f
withLoopAlive<T>(work: () => Promise<T>): Promise<T>

Runs work with the event loop held open, so it cannot end by everything going quiet.

Usage

import * as mod from "lib/utils/with-loop-alive.ts";