1
0
silverbullet/server/util.ts

6 lines
103 B
TypeScript

export function safeRun(fn: () => Promise<void>) {
fn().catch((e) => {
console.error(e);
});
}