Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit df0548d

Browse files
committed
Remove sleep
1 parent d28dbc1 commit df0548d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/worker.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,14 @@ ctx.get_stdin = get_stdin;
6565
let resolveInputReply: any;
6666

6767

68-
function sleep(ms:number) {
69-
return new Promise(resolve => setTimeout(resolve, ms));
70-
}
71-
7268
async function loadCppModule(moduleFactory: any): Promise<any> {
7369
const options: any = {};
7470
globalThis.Module = await moduleFactory(options);
75-
71+
7672
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
7773
// @ts-ignore
7874
await import("./python_data");
7975

80-
await sleep(2000)
8176
await waitRunDependency();
8277
raw_xkernel = new globalThis.Module.xkernel();
8378
raw_xserver = raw_xkernel.get_server();

0 commit comments

Comments
 (0)