You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on May 18, 2026. It is now read-only.
duplexify with async globby and set read/write stream later - didnt convert globby to promise yet, but tested async with setTimeout
Failed all test cases when I switched task from being a sync function to a co.wrap(function * (){ .. }) - which returns a promise, but is nice because yielding promises is nice.
The reason it became async is for globby - I am checking the filesystem to see which files exist that match patterns in input and output. This may become negligible as tasks become able to pass values to each other. However, perhaps the performance impact of globby.syncwill not be negligible when running many tasks, or tasks that have many files.
For now, I am just going to use globby.sync. As well, glob-stream may be worth a try - will still be async but perhaps glob-stream can be piped into the main Task stream.
At some point, Task may need to have a stream that wraps a stream. So that you can stream in input object into, and stream out an output info object on a .end after the .end/.push(null) of the inner stream.
setTimeoutFailed all test cases when I switched task from being a sync function to a
co.wrap(function * (){ .. })- which returns a promise, but is nice becauseyielding promises is nice.Before:
after:
The reason it became async is for
globby- I am checking the filesystem to see which files exist that match patterns ininputandoutput. This may become negligible as tasks become able to pass values to each other. However, perhaps the performance impact ofglobby.syncwill not be negligible when running many tasks, or tasks that have many files.For now, I am just going to use
globby.sync. As well, glob-stream may be worth a try - will still be async but perhaps glob-stream can be piped into the main Task stream.At some point, Task may need to have a stream that wraps a stream. So that you can stream in input object into, and stream out an output info object on a
.endafter the.end/.push(null)of the inner stream.