mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-04 14:25:43 +02:00
execute resume wait
This commit is contained in:
parent
4ae9ccdcc2
commit
5a27e005c7
1 changed files with 1 additions and 0 deletions
|
@ -168,6 +168,7 @@ export class Coder {
|
||||||
}
|
}
|
||||||
if (this.resume_func != null) {
|
if (this.resume_func != null) {
|
||||||
this.interruptible = true;
|
this.interruptible = true;
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 500));
|
||||||
let res = await this.execute(this.resume_func, timeout);
|
let res = await this.execute(this.resume_func, timeout);
|
||||||
this.interruptible = false;
|
this.interruptible = false;
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Add table
Reference in a new issue