M
worker_threads.setEnvironmentData
History
Added in: v15.12.0, v14.18.0
v15.12.0, v14.18.0
Introduced in: v10.5.0
v10.5.0
No longer experimental.
v17.5.0, v16.15.0
worker_threads.setEnvironmentData(key, value?): void
Attributes
The worker.setEnvironmentData() API sets the content of
worker.getEnvironmentData() in the current thread and all new Worker
instances spawned from the current context.