fix(core): update
This commit is contained in:
parent
b6ab079de0
commit
095ea36e5d
@ -85,7 +85,7 @@ export const map = async <T>(inputArg: T[], functionArg: IAsyncFunction<T>) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const timeoutWrap = <T = any>(promiseArg: Promise<T>, timeoutInMs: number) => {
|
export const timeoutWrap = <T = any>(promiseArg: Promise<T>, timeoutInMs: number) => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise<T>((resolve, reject) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
reject(new Error('timeout'));
|
reject(new Error('timeout'));
|
||||||
}, timeoutInMs);
|
}, timeoutInMs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user