Skip to content

Commit

Permalink
Update last-eventloop-break.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger committed Jan 22, 2025
1 parent 516c924 commit c62eaf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/media-parser/src/state/last-eventloop-break.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const eventLoopState = (logLevel: LogLevel) => {
const eventLoopBreakIfNeeded = async () => {
if (Date.now() - lastEventLoopBreak > 2_000) {
await new Promise<void>((resolve) => {
setTimeout(() => resolve(), 10);
setTimeout(() => resolve(), 50);
});
Log.verbose(logLevel, '10ms event loop break');
lastEventLoopBreak = Date.now();
Expand Down

0 comments on commit c62eaf6

Please sign in to comment.