Skip to content

@uservane/browser: guardAsync

guardAsync(label, fn): void

Defined in: guard.ts:21

Async guard: runs fn, catches sync throws, and attaches .catch so promise rejections never become unhandled rejections on the host.

string

() => void | Promise<void>

void