From f3c974b82f2822fe79fc78d1855707de44d7d6d2 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Sat, 25 Feb 2023 17:53:28 +0100 Subject: [PATCH] vix void --- src/nman.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nman.ts b/src/nman.ts index c4aeb9d..5a28f57 100644 --- a/src/nman.ts +++ b/src/nman.ts @@ -9,10 +9,10 @@ async function exitHandler() { export class ShutdownTasks { static list: ShutdownTasks[][] = []; - task: () => Promise | void; + task: () => Promise | void; maxMillis: number; order: number; - constructor(task: () => Promise | void, maxMillis: number, order: number) { + constructor(task: () => Promise | void, maxMillis: number, order: number) { this.task = task; this.maxMillis = maxMillis; this.order = order; @@ -25,7 +25,7 @@ export class ShutdownTasks { } } -export const addShutdownTask = function (task: () => Promise | void, maxMillis = 5000, order = 1) { +export const addShutdownTask = function (task: () => Promise | void, maxMillis = 5000, order = 1) { return new ShutdownTasks(task, maxMillis, order); };