0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/api
Anna Henningsen ddefa0f2c5
worker: enable stdio
Provide `stdin`, `stdout` and `stderr` options for the `Worker`
constructor, and make these available to the worker thread
under their usual names.

The default for `stdin` is an empty stream, the default for
`stdout` and `stderr` is redirecting to the parent thread’s
corresponding stdio streams.

PR-URL: https://github.com/nodejs/node/pull/20876
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
2018-06-06 19:43:56 +02:00
..
_toc.md worker: implement MessagePort and MessageChannel 2018-06-06 19:43:44 +02:00
addons.md doc: fix typo in addons.md 2018-06-05 19:02:14 -07:00
all.md worker: implement MessagePort and MessageChannel 2018-06-06 19:43:44 +02:00
assert.md 2018-05-23, Version 10.2.0 (Current) 2018-05-23 19:08:39 -04:00
async_hooks.md async_hooks: remove deprecated example 2018-06-06 01:27:32 -07:00
buffer.md doc: add more missing backticks 2018-05-03 02:12:07 +03:00
child_process.md doc: add more missing backticks 2018-05-03 02:12:07 +03:00
cli.md 2018-05-23, Version 10.2.0 (Current) 2018-05-23 19:08:39 -04:00
cluster.md doc: add more missing backticks 2018-05-03 02:12:07 +03:00
console.md doc: match console.count()/countReset() signatures 2018-05-08 18:12:55 +03:00
crypto.md doc: make constants enumeration consistent 2018-05-30 01:22:55 +03:00
debugger.md doc: add more missing backticks 2018-05-03 02:12:07 +03:00
deprecations.md doc: use "is" rather than "has been" 2018-06-01 23:40:59 +02:00
dgram.md doc: add more missing backticks 2018-05-03 02:12:07 +03:00
dns.md doc: fix typos on e.g. abbreviations 2018-06-01 23:54:18 +02:00
documentation.md doc, tools: unify stability signatures 2018-05-09 00:52:13 +03:00
domain.md doc: add more missing backticks 2018-05-03 02:12:07 +03:00
errors.md worker: initial implementation 2018-06-06 19:43:52 +02:00
esm.md esm: provide named exports for builtin libs 2018-05-11 12:06:18 -05:00
events.md doc: clarify this in event listeners 2018-05-08 13:28:38 +03:00
fs.md fs: do not crash when using a closed fs event watcher 2018-06-03 17:15:17 +02:00
globals.md 2018-04-24, Version 10.0.0 (Current) 2018-04-24 12:02:31 -07:00
http2.md http2: fix several serious bugs 2018-05-22 11:42:33 +04:00
http.md http: make client .aborted boolean 2018-05-14 23:05:09 +03:00
https.md https: defines maxHeadersCount in the constructor 2018-05-05 13:57:07 +02:00
index.md
inspector.md doc: remove redundant empty lines 2018-04-29 17:48:43 +03:00
intl.md doc: add more missing backticks 2018-05-03 02:12:07 +03:00
modules.md doc: add global node_modules to require.resolve() 2018-05-12 01:18:10 +03:00
n-api.md doc: fix typo in n-api.md 2018-05-31 18:59:26 +02:00
net.md net: allow IPC servers be accessible by all 2018-05-24 11:06:12 +02:00
os.md doc: add more missing backticks 2018-05-03 02:12:07 +03:00
path.md doc: fix various nits 2018-04-04 13:45:39 +03:00
perf_hooks.md doc: remove redundant empty lines 2018-04-29 17:48:43 +03:00
process.md worker: initial implementation 2018-06-06 19:43:52 +02:00
punycode.md doc: add and unify even more return values 2018-04-12 03:18:01 +03:00
querystring.md doc: remove redundant empty lines 2018-04-29 17:48:43 +03:00
readline.md doc: add more missing backticks 2018-05-03 02:12:07 +03:00
repl.md doc: document using domain in REPL 2018-05-04 23:05:56 +03:00
stream.md doc: add more missing backticks 2018-05-03 02:12:07 +03:00
string_decoder.md doc: unify section structures 2018-04-15 02:37:50 +03:00
synopsis.md doc: add missing periods or colons 2018-05-02 06:17:08 +03:00
timers.md timers: add hasRef method to Timeout & Immediate 2018-06-01 10:29:51 +02:00
tls.md doc: fix inconsistent documentation (host vs hostname) 2018-06-01 11:10:50 +02:00
tracing.md vm,trace_events: add node.vm.script trace events category 2018-05-16 14:34:41 -07:00
tty.md doc: add more missing backticks 2018-05-03 02:12:07 +03:00
url.md doc: add more missing backticks 2018-05-03 02:12:07 +03:00
util.md util: remove custom inspection function 2018-05-19 19:30:58 +02:00
v8.md doc: add missing YAML keyword in v8.md metadata 2018-04-14 11:54:09 +03:00
vm.md worker: initial implementation 2018-06-06 19:43:52 +02:00
worker.md worker: enable stdio 2018-06-06 19:43:56 +02:00
zlib.md doc: improve note on zlib APIs threadpool usage 2018-05-30 08:55:06 +02:00