Streams order is not respected
See original GitHub issueWhen I try to use merge-stream
with gulp-concat
, the resulting order of concatenated code blocks is different.
const gulp = require('gulp');
const merge = require('merge-stream');
const less = require('gulp-less');
const concat = require('gulp-concat');
const rename = require('gulp-rename');
gulp.task('build', () => {
const files = ['file1', 'file2', 'file3'];
const streams = files.map((file) => {
return gulp.src(`./${file}.less`)
.pipe(less());
});
return merge(...streams)
.pipe(concat(`merged.css`))
.pipe(gulp.dest('./result'));
});
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Encounter order preservation in java stream - Stack Overflow
In other words forEachOrdered preserves the encounter order in an already ordered stream. It does not do any sorting or other ordering ...
Read more >Java 8 Streams - Ordering - LogicBig
For unordered stream no stability is maintained, the duplicates are just ignored which come later in time rather than respecting encounter ...
Read more >Stream Ordering - CUDA - NVIDIA Developer Forums
Items issued into the same stream will execute in issue order. Items issued into separate, non-default streams will have no ordering prescribed ...
Read more >In what order do the elements of a stream become available?
The unordered method may be applied to a stream to indicate to the implementation that a stream's encounter order can be disregarded. Parallel...
Read more >Getting higher stream number for lower order stream in ArcGIS ...
Result is incorrect, count of higher order streams must be significantly less than lower order. – FelixIP. Jul 14, 2018 at 21:21.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://www.npmjs.com/package/merge2 <– https://www.npmjs.com/package/streamqueue <-- This is mentioned in a gulp cheat sheet: https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/en-js-p2.pdf
ordered-read-streams
says I’m using not readable streams.