1
0
silverbullet/server/util.ts
Zef Hemel 561aa6891f
Migrate to Deno (#86)
Big bang migration to Deno 🤯
2022-10-10 14:50:21 +02:00

6 lines
103 B
TypeScript

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