Files
node/test/parallel
Anna Henningsen 0e7b61229a src: refactor WriteWrap and ShutdownWraps
Encapsulate stream requests more:

- `WriteWrap` and `ShutdownWrap` classes are now tailored to the
  streams on which they are used. In particular, for most streams
  these are now plain `AsyncWrap`s and do not carry the overhead
  of unused libuv request data.
- Provide generic `Write()` and `Shutdown()` methods that wrap
  around the actual implementations, and make *usage* of streams
  easier, rather than implementing; for example, wrap objects
  don’t need to be provided by callers anymore.
- Use `EmitAfterWrite()` and `EmitAfterShutdown()` handlers to
  call the corresponding JS handlers, rather than always trying
  to call them. This makes usage of streams by other C++ code
  easier and leaner.

Also fix up some tests that were previously not actually testing
asynchronicity when the comments indicated that they would.

PR-URL: https://github.com/nodejs/node/pull/18676
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-02-14 10:00:29 +01:00
..
2018-02-10 02:39:14 +01:00
2018-02-12 15:51:50 +01:00
2017-12-22 12:49:10 -08:00
2018-02-01 13:17:33 +01:00
2017-12-22 12:49:10 -08:00
2018-01-03 08:45:58 -08:00
2017-11-26 08:47:33 -08:00
2017-11-10 14:27:52 -05:00
2018-01-30 17:00:57 -08:00
2018-01-30 17:00:57 -08:00
2017-11-26 08:57:35 -08:00
2018-01-17 14:33:20 +01:00