@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
16 lines (15 loc) • 320 B
JavaScript
;
import { NamedFunction1 } from "./_Base";
import { CoreSleep } from "../../core/Sleep";
export class sleep extends NamedFunction1 {
constructor() {
super(...arguments);
this.async = true;
}
static type() {
return "sleep";
}
async func(delay) {
await CoreSleep.sleep(delay);
}
}