Custom environment variables for worker thread. #20064
Unanswered
enricoschaaf
asked this question in
Q&A
Replies: 1 comment
-
@enricoschaaf, I don't know of such a feature. This might also be due to the fact that Deno's workers threads follows the Web Workers API and they don't support environment variables as well as they target browsers. I'd recommend you to join the Discord server and ask your question there as the people there respond much quicker and might have more in-depth knowledge of the inner and outer parts of Deno. Here's a invite to the Discord server: https://discord.gg/deno Edit: There's also a open discussion (#18930) about having a different cwd for each worker thread. As environment variables are per-process they aren't editable on a per-worker basis. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi 👋 I would like to spawn a worker with custom env variables, is this possible? And if not, is there a way to do this with rust_runtime?
Beta Was this translation helpful? Give feedback.
All reactions