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) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
return new Promise<T>((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
reject(new Error('timeout'));
|
||||
}, timeoutInMs);
|
||||
|
Loading…
x
Reference in New Issue
Block a user