1 | import { __awaiter, __generator } from "tslib";
|
2 | export function wait(ms) {
|
3 | return __awaiter(this, void 0, void 0, function () {
|
4 | return __generator(this, function (_a) {
|
5 | return [2, new Promise(function (resolve) { return setTimeout(resolve, ms); })];
|
6 | });
|
7 | });
|
8 | }
|
9 | export function tick() {
|
10 | return __awaiter(this, void 0, void 0, function () {
|
11 | return __generator(this, function (_a) {
|
12 | return [2, wait(0)];
|
13 | });
|
14 | });
|
15 | }
|
16 | //# sourceMappingURL=wait.js.map |
\ | No newline at end of file |