mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: add delay between tasks
This commit is contained in:
1 file changed
+2
@@ -176,6 +176,8 @@ export async function apply(ctx: Context) {
|
|||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.error(e);
|
logger.error(e);
|
||||||
|
// eslint-disable-next-line no-await-in-loop
|
||||||
|
await sleep(50); // This allows exiting when shutting down
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (argv.options.showEvent) logger.info('Event: %o', res);
|
if (argv.options.showEvent) logger.info('Event: %o', res);
|
||||||
|
|||||||
Reference in new issue
Block a user