Skip to content

Commit 8ebe0d7

Browse files
committed
fixup! fixup! src: set worker thread name using worker.name
1 parent 234f981 commit 8ebe0d7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/api/worker_threads.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,13 @@ changes:
12321232
* `name` {string} An optional `name` to be replaced in the thread name
12331233
and to the worker title for debugging/identification purposes,
12341234
making the final title as `[worker ${id}] ${name}`.
1235-
**Default:** `'WorkerThread'`.
1235+
This parameter has a maximum allowed size, depending on the operating
1236+
system. If the provided name exceeds the limit, it will be truncated
1237+
* Maximum sizes:
1238+
* Windows: 32,767 characters
1239+
* macOS: 64 characters
1240+
* Other systems: 16 characters
1241+
**Default:** `'WorkerThread'`.
12361242

12371243
### Event: `'error'`
12381244

0 commit comments

Comments
 (0)