mirror of
https://github.com/sergeyyarkov/node-docker-example.git
synced 2026-10-11 18:29:34 +03:00
14 lines
234 B
JavaScript
14 lines
234 B
JavaScript
class WaitMiddleware {
|
|
static async handle() {
|
|
const wait = (ms = 1000) => {
|
|
return new Promise((res) => {
|
|
setTimeout(() => res(ms), ms);
|
|
});
|
|
};
|
|
|
|
await wait(10);
|
|
}
|
|
}
|
|
|
|
export default WaitMiddleware;
|