mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +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) {
|
||||
logger.error(e);
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
await sleep(50); // This allows exiting when shutting down
|
||||
continue;
|
||||
}
|
||||
if (argv.options.showEvent) logger.info('Event: %o', res);
|
||||
|
||||
Reference in new issue
Block a user