UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

16 lines (15 loc) 320 B
"use strict"; 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); } }