1 | ;
|
2 | // Copyright (c) Jupyter Development Team.
|
3 | // Distributed under the terms of the Modified BSD License.
|
4 | Object.defineProperty(exports, "__esModule", { value: true });
|
5 | exports.sleep = void 0;
|
6 | function sleep(milliseconds = 0,
|
7 | // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
8 | value) {
|
9 | return new Promise((resolve, reject) => {
|
10 | setTimeout(() => {
|
11 | resolve(value);
|
12 | }, milliseconds);
|
13 | });
|
14 | }
|
15 | exports.sleep = sleep;
|
16 | //# sourceMappingURL=testutils.js.map |
\ | No newline at end of file |