0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Anna Henningsen 2833a0d8b7
worker: make terminate() resolve for unref’ed Workers
Once `worker.terminate()` is called, the Worker instance will be
destroyed as soon as possible anyway, so in order to make
the Promise returned by `worker.terminate()` resolve always,
it should be okay to just call `.ref()` on it and keep the main
event loop alive temporarily.

PR-URL: https://github.com/nodejs/node/pull/29484
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2019-09-09 22:21:37 +02:00
..
internal worker: make terminate() resolve for unref’ed Workers 2019-09-09 22:21:37 +02:00
_http_agent.js https: do not automatically use invalid servername 2019-06-17 11:58:26 +02:00
_http_client.js http: simplify timeout handling 2019-08-31 18:41:41 +02:00
_http_common.js http: simplify drain() 2019-08-19 12:56:08 -07:00
_http_incoming.js http: replace superfluous connection property with getter/setter 2019-08-17 06:21:59 -07:00
_http_outgoing.js stream: disallow stream methods on finished stream 2019-08-20 08:47:19 -07:00
_http_server.js http: reset parser.incoming when server request is finished 2019-08-26 15:22:04 +02:00
_stream_duplex.js http,stream: add writableEnded 2019-08-17 00:28:06 -07:00
_stream_passthrough.js
_stream_readable.js stream: fix readable state awaitDrain increase in recursion 2019-08-26 15:20:50 +02:00
_stream_transform.js
_stream_wrap.js
_stream_writable.js stream: do not emit drain if stream ended 2019-08-20 08:55:36 -07:00
_tls_common.js tls: rename validateKeyCert in _tls_common.js 2019-06-12 20:58:27 -07:00
_tls_wrap.js tls: allow client-side sockets to be half-opened 2019-08-17 06:46:31 +02:00
.eslintrc.yaml
assert.js deps: update acorn to 6.2.0 2019-07-15 00:04:50 +02:00
async_hooks.js process: improve queueMicrotask performance 2019-06-10 07:49:40 +02:00
buffer.js buffer: correct indexOf() error message 2019-08-28 15:13:51 -04:00
child_process.js stream: use readableEncoding public api for child_process 2019-07-14 22:27:33 -07:00
cluster.js
console.js
constants.js
crypto.js
dgram.js dgram: changed 'var' to 'let' and 'const' 2019-07-29 23:12:18 -07:00
dns.js dns: update lookupService() first arg name 2019-08-10 19:06:21 -07:00
domain.js domain: use strong reference to domain while active 2019-07-24 20:40:42 -07:00
events.js events: improve once() performance 2019-08-27 20:06:09 +08:00
fs.js fs: add recursive option to rmdir() 2019-08-23 13:59:07 -07:00
http2.js
http.js
https.js
inspector.js inspector: add inspector.waitForDebugger() 2019-07-20 22:19:06 -07:00
module.js lib: rework logic of stripping BOM+Shebang from commonjs 2019-05-26 13:04:29 -05:00
net.js net: allow reading data into a static buffer 2019-08-23 17:05:52 -04:00
os.js
path.js path: improve normalization performance 2019-08-05 19:17:32 +08:00
perf_hooks.js perf_hooks: ignore duplicated entries in observer 2019-09-07 07:04:19 -07:00
process.js
punycode.js
querystring.js querystring: improve performance 2019-08-28 03:12:11 -04:00
readline.js readline: close dumb terminals on Control+D 2019-08-17 15:49:45 -04:00
repl.js esm: make dynamic import work in the REPL 2019-09-06 11:47:32 -05:00
stream.js
string_decoder.js
sys.js
timers.js
tls.js tls: remove unnecessary set of DEFAULT_MAX_VERSION 2019-06-17 14:39:41 +02:00
trace_events.js perf_hooks,trace_events: use stricter equality 2019-06-16 16:45:15 +08:00
tty.js tty: expose stream API from readline methods 2019-07-18 17:20:45 -04:00
url.js
util.js
v8.js src: export v8.GetHeapCodeAndMetadataStatistics() 2019-07-30 11:36:51 -07:00
vm.js vm: fix gc bug with modules and compiled functions 2019-07-19 16:45:46 -05:00
worker_threads.js worker: add ability to unshift message from MessagePort 2019-05-19 22:01:34 +02:00
zlib.js zlib: remove usage of public util module 2019-07-19 11:06:29 -07:00