feat(infra): job system (#7212)

This commit is contained in:
EYHN
2024-07-02 09:17:39 +00:00
parent 0957c30e74
commit 3870801ebb
8 changed files with 623 additions and 0 deletions

12
scripts/setup/polyfill.ts Normal file
View File

@@ -0,0 +1,12 @@
/* eslint-disable */
// @ts-nocheck
Promise.withResolvers ??= function withResolvers() {
var a,
b,
c = new this(function (resolve, reject) {
a = resolve;
b = reject;
});
return { resolve: a, reject: b, promise: c };
};