Skip to content

Commit

Permalink
Processed code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrutter committed Jan 30, 2025
1 parent 8e7820f commit 35baa8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/timed-out.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function timedOut(request: ClientRequest, delays: Delays, options
const {host, hostname} = options;

const timeoutHandler = (delay: number, event: string): void => {
// Use queueMicroTask to allow for any cancelled events to be handled first,
// Use queueMicroTask to allow for any cancelled events to be handled first,
// to prevent firing any TimeoutError unneeded when the event loop is busy or blocked
queueMicrotask(() => {
if (!handled.has(event)) {
Expand Down

0 comments on commit 35baa8d

Please sign in to comment.