fix: 修复首次创建任务运行时不自动设置当前运行情况的bug

This commit is contained in:
xiaojunnuo
2024-09-11 18:01:46 +08:00
parent 8ed16b3ea2
commit ecd83ee136
9 changed files with 106 additions and 9 deletions
+11 -1
View File
@@ -4,9 +4,19 @@ export * from "./util.request.js";
export * from "./util.log.js";
export * from "./util.file.js";
export * from "./util.sp.js";
export * as promises from "./util.promise.js";
export * from "./util.promise.js";
export * from "./util.hash.js";
import { sp } from "./util.sp.js";
import { hashUtils } from "./util.hash.js";
import { promises } from "./util.promise.js";
import { fileUtils } from "./util.file.js";
import _ from "lodash-es";
export const utils = {
sleep,
http,
sp,
hash: hashUtils,
promises,
file: fileUtils,
_,
};
@@ -24,3 +24,8 @@ export function safePromise<T>(callback: (resolve: (ret: T) => void, reject: (re
}
});
}
export const promises = {
TimeoutPromise,
safePromise,
};