@travetto/base
Advanced tools
Comparing version 4.0.2 to 4.0.3
{ | ||
"name": "@travetto/base", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Environment config and common utilities for travetto applications.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -99,4 +99,11 @@ import crypto from 'node:crypto'; | ||
/** | ||
* Non-blocking timeout, that is cancellable | ||
* Blocking timeout | ||
*/ | ||
static blockingTimeout(time: number): Promise<void> { | ||
return timers.setTimeout(time, undefined, { ref: false }).catch(() => { }); | ||
} | ||
/** | ||
* Non-blocking timeout | ||
*/ | ||
static nonBlockingTimeout(time: number): Promise<void> { | ||
@@ -103,0 +110,0 @@ return timers.setTimeout(time, undefined, { ref: false }).catch(() => { }); |
57014
1122