Skip to content

feat: add name parameter to Worker#191

Merged
mcollina merged 2 commits intomainfrom
add-worker-name
Jan 21, 2026
Merged

feat: add name parameter to Worker#191
mcollina merged 2 commits intomainfrom
add-worker-name

Conversation

@mcollina
Copy link
Member

Adds a default worker name thread-stream for easier identification in debuggers/profilers.

Overridable via workerOpts.name.

@mcollina mcollina requested a review from jsumners January 21, 2026 14:10
threadName was added in Node.js v22.20.0 and v24.6.0, so the tests
need to be skipped on earlier versions (including all of Node 20).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mcollina mcollina merged commit f445a55 into main Jan 21, 2026
32 of 33 checks passed
@mcollina mcollina deleted the add-worker-name branch January 21, 2026 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants