温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/worker_threads/WorkerOptions
点击访问原文链接

Node worker_threads.WorkerOptions TypeScript interface | API Reference | Bun

Node worker_threads.WorkerOptions TypeScript interface | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:worker_threads/WorkerOptionsPargvPenvPevalPexecArgvPnamePresourceLimitsPstderrPstdinPstdoutPtrackUnmanagedFdsPtransferListPworkerData

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:worker_threads/WorkerOptionsPargvPenvPevalPexecArgvPnamePresourceLimitsPstderrPstdinPstdoutPtrackUnmanagedFdsPtransferListPworkerData

interface

worker_threads.WorkerOptionsinterface WorkerOptionsargv?: any[]List of arguments which would be stringified and appended to process.argv in the worker. This is mostly similar to the workerData but the values will be available on the global process.argv as if they were passed as CLI options to the script.

env?: Dictstring> | typeof SHARE_ENVeval?: booleanexecArgv?: string[]name?: stringAn optional name to be appended to the worker title for debugging/identification purposes, making the final title as [worker ${id}] ${name}.

resourceLimits?: ResourceLimitsstderr?: booleanstdin?: booleanstdout?: booleantrackUnmanagedFds?: booleantransferList?: Transferable[]Additional data to send in the first worker message.

workerData?: any

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录